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

Member predicate PreprocessorDirective::getAGuard

Gets a preprocessor branching directive whose condition affects whether this directive is performed.

From a lexical point of view, this returns all #if, #ifdef, #ifndef, or #elif directives which occur before this directive and have a matching #endif which occurs after this directive.

PreprocessorBranch getAGuard()