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

Member predicate PreprocessorBranch::wasNotTaken

Holds if at least one translation unit evaluated this directive’s condition but then didn’t take the branch.

If #else is the next matching directive, then this means that the #else was taken instead.

predicate wasNotTaken()