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

Predicate 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.

If the system macro is invoked through a non-system macro, then this predicate does not hold.

See also isFromMacroDefinition.

Import path

import semmle.code.cpp.commons.Exclusions
predicate isFromSystemMacroDefinition ( Element e )