1.. title:: clang-tidy - readability-avoid-const-params-in-decls
2
3readability-avoid-const-params-in-decls
4=======================================
5
6Checks whether a function declaration has parameters that are top level
7``const``.
8
9``const`` values in declarations do not affect the signature of a function, so
10they 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