brintos

brintos / llvm-project-archived public Read only

0
0
Text · 620 B · b1146e9 Raw
26 lines · plain
1.. title:: clang-tidy - readability-avoid-const-params-in-decls2 3readability-avoid-const-params-in-decls4=======================================5 6Checks whether a function declaration has parameters that are top level7``const``.8 9``const`` values in declarations do not affect the signature of a function, so10they should not be put there.11 12Examples:13 14.. code-block:: c++15 16  void f(const string);   // Bad: const is top level.17  void f(const string&);  // Good: const is not top level.18 19Options20-------21 22.. option:: IgnoreMacros23 24   If set to `true`, the check will not give warnings inside macros. Default25   is `true`.26