[PATCH] D24652: [clang-tidy] readability-avoid-const-params-in-decls template instantiation bugfix
Malcolm Parsons via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 16 04:29:36 PDT 2016
malcolm.parsons added inline comments.
================
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))))
----------------
omtcyfz wrote:
> `ast_matchers::` is redundant here.
You'd think so, but it didn't compile.
https://reviews.llvm.org/D24652
More information about the cfe-commits
mailing list