CodeQL library for C/C++
codeql/cpp-all 2.1.1-dev (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)