Module Macro

Import path

semmle.code.cpp.Macro

Imports

cpp

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

Predicates

affectedByMacro

Holds if element is affected by a macro.

inMacroExpansion

Holds if element is in the expansion of a macro.

inSystemMacroExpansion

Holds if element is in the expansion of a macro from a system header.

macroLine

Holds if there is a macro invocation on line line of file f.

macroLocation

Holds if l is the location of a macro.

possibleMacroLocation

Holds if there might be a macro invocation at location l.

Classes

Macro

A macro.

MacroAccess

A macro access (macro expansion or other macro access).

MacroInvocation

A macro invocation (macro expansion).

MacroInvocationExpr

A top-level expression generated by a macro invocation.

MacroInvocationStmt

A top-level statement generated by a macro invocation.