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

Predicate functionContainsDisabledCode

Holds if the function f contains code excluded by the preprocessor.

Import path

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