CodeQL library for C/C++
codeql/cpp-all 0.12.6 (changelog, source)

Member predicate MacroInvocation::getExpandedArgument

Gets the ith expanded argument of this macro invocation, where the first argument has i = 0. The result has been expanded for macros and macro parameters. If the macro definition does not use this argument, the extractor will avoid computing the expanded form for efficiency, and the result will be "".

See the documentation of getUnexpandedArgument for examples of the differences between expanded and unexpanded arguments.

string getExpandedArgument(int i)