[PATCH] D17034: Add an AST matcher for null pointers
Samuel Benzaquen via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 16 09:21:49 PST 2016
sbenza added inline comments.
================
Comment at: include/clang/ASTMatchers/ASTMatchers.h:4838
@@ +4837,3 @@
+ gnuNullExpr(), cxxNullPtrLiteralExpr(),
+ expr(integerLiteral(equals(0), hasParent(expr(hasType(pointerType()))))));
+}
----------------
is this expr() necessary?
http://reviews.llvm.org/D17034
More information about the cfe-commits
mailing list