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