CodeQL library for C/C++
codeql/cpp-all 0.12.12-dev (changelog, source)
Search

Member predicate MacroInvocation::getExpr

Gets a top-level expression associated with this macro invocation, if any. Note that this predicate will fail if the top-level expanded element is not an expression (for example if it is a statement).

This macro is intended to be used with macros that expand to a complete expression. In other cases, it may have multiple results or no results.

Expr getExpr()