CodeQL library for C/C++
Search

Module Exclusions

Common predicates used to exclude results from a query based on heuristics.

Import path

import semmle.code.cpp.commons.Exclusions

Imports

cpp

Provides classes and predicates for working with C/C++ code.

Predicates

functionContainsDisabledCode

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

functionContainsPreprocCode

Holds if the function f contains code that could be excluded by the preprocessor.

functionDefinedInIfDef

Holds if the function f is inside a preprocessor branch that may have code in another arm.

isFromMacroDefinition

Holds if e is completely or partially from a macro definition, as opposed to being passed in as an argument.