clang 20.0.0git
|
Records the location of a macro expansion. More...
#include "clang/Lex/PreprocessingRecord.h"
Public Member Functions | |
MacroExpansion (IdentifierInfo *BuiltinName, SourceRange Range) | |
MacroExpansion (MacroDefinitionRecord *Definition, SourceRange Range) | |
bool | isBuiltinMacro () const |
True if it is a builtin macro. | |
const IdentifierInfo * | getName () const |
The name of the macro being expanded. | |
MacroDefinitionRecord * | getDefinition () const |
The definition of the macro being expanded. | |
Public Member Functions inherited from clang::PreprocessedEntity | |
EntityKind | getKind () const |
Retrieve the kind of preprocessed entity stored in this object. | |
SourceRange | getSourceRange () const LLVM_READONLY |
Retrieve the source range that covers this entire preprocessed entity. | |
bool | isInvalid () const |
Returns true if there was a problem loading the preprocessed entity. | |
void * | operator new (size_t bytes, PreprocessingRecord &PR, unsigned alignment=8) noexcept |
void * | operator new (size_t bytes, void *mem) noexcept |
void | operator delete (void *ptr, PreprocessingRecord &PR, unsigned alignment) noexcept |
void | operator delete (void *, std::size_t) noexcept |
void | operator delete (void *, void *) noexcept |
Static Public Member Functions | |
static bool | classof (const PreprocessedEntity *PE) |
Additional Inherited Members | |
Public Types inherited from clang::PreprocessedEntity | |
enum | EntityKind { InvalidKind , MacroExpansionKind , MacroDefinitionKind , InclusionDirectiveKind , FirstPreprocessingDirective = MacroDefinitionKind , LastPreprocessingDirective = InclusionDirectiveKind } |
The kind of preprocessed entity an object describes. More... | |
Protected Member Functions inherited from clang::PreprocessedEntity | |
PreprocessedEntity (EntityKind Kind, SourceRange Range) | |
Records the location of a macro expansion.
Definition at line 168 of file PreprocessingRecord.h.
|
inline |
Definition at line 174 of file PreprocessingRecord.h.
References Range.
|
inline |
Definition at line 178 of file PreprocessingRecord.h.
References Range.
|
inlinestatic |
Definition at line 199 of file PreprocessingRecord.h.
References clang::PreprocessedEntity::getKind(), and clang::PreprocessedEntity::MacroExpansionKind.
|
inline |
The definition of the macro being expanded.
May return null if this is a builtin macro.
Definition at line 194 of file PreprocessingRecord.h.
Referenced by getName().
|
inline |
The name of the macro being expanded.
Definition at line 186 of file PreprocessingRecord.h.
References getDefinition(), and clang::IdentifierInfo::getName().
|
inline |
True if it is a builtin macro.
Definition at line 183 of file PreprocessingRecord.h.