[PATCH] D20053: [clang-tidy] Add misc-unnecessary-mutable check.

Marek SokoĊ‚owski via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 2 12:53:43 PDT 2016


mnbvmar added inline comments.

================
Comment at: clang-tidy/misc/UnnecessaryMutableCheck.cpp:47
@@ +46,3 @@
+
+  void RunSearch(const Decl *Declaration) {
+    auto *Body = Declaration->getBody();
----------------
Unless I miss something, the moment we set FoundNonConstUse to true, we stop recurring both in FieldUseVisitor and ClassMethodVisitor.


http://reviews.llvm.org/D20053





More information about the cfe-commits mailing list