1.. title:: clang-tidy - readability-redundant-inline-specifier 2 3readability-redundant-inline-specifier 4====================================== 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 constexpr 15functions are implicitly inlined 16 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 functions 24defined entirely inside a class/struct/union definition are implicitly inlined. 25 26Options 27------- 28 29.. option:: StrictMode 30 31 If set to `true`, the check will also flag functions and variables that 32 already have internal linkage as redundant. 33