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

Predicate startsWithIfndef

Holds if hf begins with an #ifndef or #if directive ifndef, to test the macro named macroName.

Import path

import semmle.code.cpp.headers.MultipleInclusion
predicate startsWithIfndef(HeaderFile hf, PreprocessorDirective ifndef, string macroName)