CodeQL library for C/C++
Search

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()