blob: eee324cddab481911ebde96beace00d06e1a53a0 [file] [log] [blame]
.. title:: clang-tidy - readability-redundant-inline-specifier
readability-redundant-inline-specifier
======================================
Detects redundant ``inline`` specifiers on function and variable declarations.
Examples:
.. code-block:: c++
constexpr inline void f() {}
In the example above the keyword ``inline`` is redundant since constexpr
functions are implicitly inlined
.. code-block:: c++
class MyClass {
inline void myMethod() {}
};
In the example above the keyword ``inline`` is redundant since member functions
defined entirely inside a class/struct/union definition are implicitly inlined.
Options
-------
.. option:: StrictMode
If set to `true`, the check will also flag functions and variables that
already have internal linkage as redundant.