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

Jonas Toth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 10 10:22:48 PDT 2018


JonasToth added a comment.

> 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?


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D45444





More information about the cfe-commits mailing list