[PATCH] D21036: Misplaced const-qualification with typedef types

Samuel Benzaquen via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 7 10:21:20 PDT 2016


sbenza accepted this revision.
This revision is now accepted and ready to land.

================
Comment at: clang-tidy/misc/MisplacedConstCheck.cpp:22
@@ +21,3 @@
+  Finder->addMatcher(
+      valueDecl(allOf(hasType(isConstQualified()),
+                      hasType(typedefType(hasDeclaration(
----------------
aaron.ballman wrote:
> sbenza wrote:
> > allOf() is unnecessary
> Good catch, that was a holdover from when I was using clang-query.
You shouldn't need it for clang-query either.


http://reviews.llvm.org/D21036





More information about the cfe-commits mailing list