[PATCH] D45444: [clang-tidy] WIP: implement new check for const-correctness

Eugene Zelenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 10 10:32:45 PDT 2018


Eugene.Zelenko added a comment.

In https://reviews.llvm.org/D45444#1063291, @JonasToth wrote:

> > It'll be good idea to have option to apply this check for pointer/references only, or include built-in types/enums.
>
> Agreed. I aim at a `mark handles const`(default on), `mark values const`(default on for objects), `mark pointer (const int * >> const <<) const` (default off)
>
> What do you mean by built-in types/enums? That they are configurable separate to objects?


I meant integers/floating point numbers/Boolean/enums. It may be overkill to apply this check for legacy code base in single pass.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D45444





More information about the cfe-commits mailing list