aaron.ballman added a subscriber: aaron.ballman. aaron.ballman added a reviewer: aaron.ballman. aaron.ballman added a comment.
I get the same behavior from the existing has() matcher -- how is this meant to differ? clang-query> match returnStmt(unless(has(expr()))) Match #1: E:\Desktop\test4.cpp:2:3: note: "root" binds here return; ^~~~~~ clang-query> match returnStmt(has(expr(cxxBoolLiteral()))) Match #1: E:\Desktop\test4.cpp:18:3: note: "root" binds here return true; ^~~~~~~~~~~ 1 match. http://reviews.llvm.org/D16526 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits