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

Kirill Bobyrev via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 16 03:17:10 PDT 2016


omtcyfz added a subscriber: omtcyfz.
omtcyfz added a comment.

Probably it also makes sense to reflect both `lambda` and template instantiation parts in documentation, since I find current wording totally confusing at the moment.


================
Comment at: clang-tidy/readability/AvoidConstParamsInDecls.cpp:41
@@ -40,1 +40,3 @@
+                   unless(cxxMethodDecl(ofClass(cxxRecordDecl(anyOf(
+                       isLambda(), ast_matchers::isTemplateInstantiation()))))),
                    has(typeLoc(forEach(ConstParamDecl))))
----------------
`ast_matchers::` is redundant here.


https://reviews.llvm.org/D24652





More information about the cfe-commits mailing list