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