Using ASTMatcher to match POD?

Hey:
CXXRecordDecl::isPOD() is available in C++, but how do I use it when writing ast_matcher expressions?

We don’t currently have a matcher exposed for that, so you’d have to write one yourself. It’d look like:

AST_MATCHER(CXXRecordDecl, isPOD) { return Node.isPOD(); }
1 Like