[PATCH] D16215: ASTMatchers: enable hasBody() matcher for FunctionDecls

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 19 10:00:31 PST 2016


aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.

With one small nit, LGTM, thanks!


================
Comment at: include/clang/ASTMatchers/ASTMatchersInternal.h:1596
@@ +1595,3 @@
+inline const Stmt *GetBodyMatcher<FunctionDecl>::get(const FunctionDecl &Node) {
+  return Node.doesThisDeclarationHaveABody() ? Node.getBody() : NULL;
+}
----------------
s/NULL/nullptr


http://reviews.llvm.org/D16215





More information about the cfe-commits mailing list