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

Jonas Toth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 5 09:15:54 PDT 2018

JonasToth added inline comments.

Comment at: clang-tidy/cppcoreguidelines/ConstCorrectnessCheck.cpp:147
+  // Example: `int i = 10`, `int i` (will be used if program is correct)
+  const auto LocalValDecl = varDecl(unless(anyOf(
+      isLocal(), hasInitializer(anything()), unless(ConstType),
@aaron.ballman The change was not valid for some reason. I leave it like it is if thats ok with you.

  rCTE Clang Tools Extra


More information about the cfe-commits mailing list