CodeQL library for C/C++
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)