1 .. title:: clang-tidy - readability-avoid-const-params-in-decls
3 readability-avoid-const-params-in-decls
4 =======================================
6 Checks whether a function declaration has parameters that are top level
9 ``const`` values in declarations do not affect the signature of a function, so
10 they should not be put there.
16 void f(const string); // Bad: const is top level.
17 void f(const string&); // Good: const is not top level.
22 .. option:: IgnoreMacros
24 If set to `true`, the check will not give warnings inside macros. Default