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

Piotr Padlewski via cfe-commits cfe-commits at lists.llvm.org
Thu May 12 07:50:19 PDT 2016


Prazek added a reviewer: Prazek.

================
Comment at: clang-tidy/misc/UnnecessaryMutableCheck.cpp:152
@@ +151,3 @@
+// it is the only declaration in a declaration chain.
+static bool CheckRemoval(SourceManager &SM, const SourceLocation &LocStart,
+                         const SourceLocation &LocEnd, ASTContext &Context,
----------------
I guess you can use hasSingleDecl in matcher to solve this


http://reviews.llvm.org/D20053





More information about the cfe-commits mailing list