brintos

brintos / llvm-project-archived public Read only

0
0
Text · 819 B · 5ae80d5 Raw
33 lines · plain
1.. title:: clang-tidy - readability-redundant-inline-specifier2 3readability-redundant-inline-specifier4======================================5 6Detects redundant ``inline`` specifiers on function and variable declarations.7 8Examples:9 10.. code-block:: c++11 12   constexpr inline void f() {}13 14In the example above the keyword ``inline`` is redundant since constexpr15functions are implicitly inlined16 17.. code-block:: c++18 19   class MyClass {20       inline void myMethod() {}21   };22 23In the example above the keyword ``inline`` is redundant since member functions24defined entirely inside a class/struct/union definition are implicitly inlined.25 26Options27-------28 29.. option:: StrictMode30 31   If set to `true`, the check will also flag functions and variables that32   already have internal linkage as redundant. Default is `false`.33