clang
3.7.0
|
Record the location of a macro definition. More...
#include <PreprocessingRecord.h>
Public Member Functions | |
MacroDefinitionRecord (const IdentifierInfo *Name, SourceRange Range) | |
const IdentifierInfo * | getName () const |
Retrieve the name of the macro being defined. More... | |
SourceLocation | getLocation () const |
Retrieve the location of the macro name in the definition. More... | |
![]() | |
PreprocessingDirective (EntityKind Kind, SourceRange Range) | |
![]() | |
EntityKind | getKind () const |
Retrieve the kind of preprocessed entity stored in this object. More... | |
SourceRange | getSourceRange () const LLVM_READONLY |
Retrieve the source range that covers this entire preprocessed entity. More... | |
bool | isInvalid () const |
Returns true if there was a problem loading the preprocessed entity. More... | |
void * | operator new (size_t bytes, PreprocessingRecord &PR, unsigned alignment=8) throw () |
void * | operator new (size_t bytes, void *mem) throw () |
void | operator delete (void *ptr, PreprocessingRecord &PR, unsigned alignment) throw () |
void | operator delete (void *, std::size_t) throw () |
void | operator delete (void *, void *) throw () |
Static Public Member Functions | |
static bool | classof (const PreprocessedEntity *PE) |
![]() | |
static bool | classof (const PreprocessedEntity *PD) |
Additional Inherited Members | |
![]() | |
enum | EntityKind { InvalidKind, MacroExpansionKind, MacroDefinitionKind, InclusionDirectiveKind, FirstPreprocessingDirective = MacroDefinitionKind, LastPreprocessingDirective = InclusionDirectiveKind } |
The kind of preprocessed entity an object describes. More... | |
![]() | |
PreprocessedEntity (EntityKind Kind, SourceRange Range) | |
Record the location of a macro definition.
Definition at line 138 of file PreprocessingRecord.h.
|
inlineexplicit |
Definition at line 143 of file PreprocessingRecord.h.
|
inlinestatic |
Definition at line 154 of file PreprocessingRecord.h.
References clang::PreprocessedEntity::getKind(), and clang::PreprocessedEntity::MacroDefinitionKind.
|
inline |
Retrieve the location of the macro name in the definition.
Definition at line 151 of file PreprocessingRecord.h.
References clang::SourceRange::getBegin(), and clang::PreprocessedEntity::getSourceRange().
Referenced by clang::index::generateUSRForMacro().
|
inline |
Retrieve the name of the macro being defined.
Definition at line 148 of file PreprocessingRecord.h.
Referenced by clang::index::generateUSRForMacro().