[PATCH] D24652: [clang-tidy] readability-avoid-const-params-in-decls template instantiation bugfix

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 23 19:47:33 PDT 2016


alexfh requested changes to this revision.
This revision now requires changes to proceed.

================
Comment at: clang-tidy/readability/AvoidConstParamsInDecls.cpp:39
@@ -38,2 +38,3 @@
                    // generate a non-definition FunctionDecl too. Ignore those.
-                   unless(cxxMethodDecl(ofClass(cxxRecordDecl(isLambda())))),
+                   // Ignore template instantiations too.
+                   unless(cxxMethodDecl(ofClass(cxxRecordDecl(anyOf(
----------------
Would be helpful to expand on why we're ignoring only member function of class instantiations (and not instantiations of member or free standing functions, for example).


https://reviews.llvm.org/D24652





More information about the cfe-commits mailing list