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

Predicate functionDefinedInIfDef

Holds if the function f is inside a preprocessor branch that may have code in another arm.

Import path

import semmle.code.cpp.commons.Exclusions
predicate functionDefinedInIfDef(Function f)