CodeQL library for C/C++
codeql/cpp-all 0.13.1 (changelog, source)
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.

isFromSystemMacroDefinition

Holds if e is completely or partially from a system macro definition, as opposed to being passed in as an argument. A system macro is a macro whose definition is outside the source directory of the database.