clang API Documentation
Record the location of a macro definition. More...
#include <PreprocessingRecord.h>
Public Member Functions | |
MacroDefinition (const IdentifierInfo *Name, SourceRange Range) | |
const IdentifierInfo * | getName () const |
Retrieve the name of the macro being defined. | |
SourceLocation | getLocation () const |
Retrieve the location of the macro name in the definition. | |
Static Public Member Functions | |
static bool | classof (const PreprocessedEntity *PE) |
Record the location of a macro definition.
Definition at line 137 of file PreprocessingRecord.h.
clang::MacroDefinition::MacroDefinition | ( | const IdentifierInfo * | Name, |
SourceRange | Range | ||
) | [inline, explicit] |
Definition at line 142 of file PreprocessingRecord.h.
static bool clang::MacroDefinition::classof | ( | const PreprocessedEntity * | PE | ) | [inline, static] |
Reimplemented from clang::PreprocessingDirective.
Definition at line 152 of file PreprocessingRecord.h.
References clang::PreprocessedEntity::getKind().
SourceLocation clang::MacroDefinition::getLocation | ( | ) | const [inline] |
Retrieve the location of the macro name in the definition.
Definition at line 149 of file PreprocessingRecord.h.
Referenced by clang::index::generateUSRForMacro().
const IdentifierInfo* clang::MacroDefinition::getName | ( | ) | const [inline] |
Retrieve the name of the macro being defined.
Definition at line 146 of file PreprocessingRecord.h.
Referenced by clang::index::generateUSRForMacro().