clang API Documentation
Records the location of a macro expansion. More...
#include <PreprocessingRecord.h>
Public Member Functions | |
MacroExpansion (IdentifierInfo *BuiltinName, SourceRange Range) | |
MacroExpansion (MacroDefinition *Definition, SourceRange Range) | |
bool | isBuiltinMacro () const |
True if it is a builtin macro. | |
const IdentifierInfo * | getName () const |
The name of the macro being expanded. | |
MacroDefinition * | getDefinition () const |
The definition of the macro being expanded. May return null if this is a builtin macro. | |
Static Public Member Functions | |
static bool | classof (const PreprocessedEntity *PE) |
Records the location of a macro expansion.
Definition at line 158 of file PreprocessingRecord.h.
clang::MacroExpansion::MacroExpansion | ( | IdentifierInfo * | BuiltinName, |
SourceRange | Range | ||
) | [inline] |
Definition at line 164 of file PreprocessingRecord.h.
clang::MacroExpansion::MacroExpansion | ( | MacroDefinition * | Definition, |
SourceRange | Range | ||
) | [inline] |
Definition at line 168 of file PreprocessingRecord.h.
static bool clang::MacroExpansion::classof | ( | const PreprocessedEntity * | PE | ) | [inline, static] |
Definition at line 189 of file PreprocessingRecord.h.
References clang::PreprocessedEntity::getKind().
MacroDefinition* clang::MacroExpansion::getDefinition | ( | ) | const [inline] |
The definition of the macro being expanded. May return null if this is a builtin macro.
Definition at line 184 of file PreprocessingRecord.h.
const IdentifierInfo* clang::MacroExpansion::getName | ( | ) | const [inline] |
The name of the macro being expanded.
Definition at line 176 of file PreprocessingRecord.h.
References getDefinition(), and clang::IdentifierInfo::getName().
bool clang::MacroExpansion::isBuiltinMacro | ( | ) | const [inline] |
True if it is a builtin macro.
Definition at line 173 of file PreprocessingRecord.h.