Debian Codegraph @

clang-tools-extra/docs/clang-tidy/checks/readability/redundant-inline-specifier.rst

raw
1 .. title:: clang-tidy - readability-redundant-inline-specifier
2
3 readability-redundant-inline-specifier
4 ======================================
5
6 Detects redundant ``inline`` specifiers on function and variable declarations.
7
8 Examples:
9
10 .. code-block:: c++
11
12 constexpr inline void f() {}
13
14 In the example above the keyword ``inline`` is redundant since constexpr
15 functions are implicitly inlined
16
17 .. code-block:: c++
18
19 class MyClass {
20 inline void myMethod() {}
21 };
22
23 In the example above the keyword ``inline`` is redundant since member functions
24 defined entirely inside a class/struct/union definition are implicitly inlined.
25
26 Options
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.