[PATCH] D21036: Misplaced const-qualification with typedef types
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 7 10:25:29 PDT 2016
aaron.ballman added inline comments.
================
Comment at: clang-tidy/misc/MisplacedConstCheck.cpp:23
@@ +22,3 @@
+ valueDecl(hasType(isConstQualified()),
+ hasType(typedefType(hasDeclaration(
+ typedefDecl(hasType(pointerType(unless(pointee(
----------------
Oddly enough, I did. What's more, there's a bug with hasType that I didn't have time to track down. It seems `hasType(allOf(...))` always fails but `allOf(hasType(...), hasType(...))` works. :-(
http://reviews.llvm.org/D21036
More information about the cfe-commits
mailing list