clang 20.0.0git
|
Base class that describes a preprocessed entity, which may be a preprocessor directive or macro expansion. More...
#include "clang/Lex/PreprocessingRecord.h"
Public Types | |
enum | EntityKind { InvalidKind , MacroExpansionKind , MacroDefinitionKind , InclusionDirectiveKind , FirstPreprocessingDirective = MacroDefinitionKind , LastPreprocessingDirective = InclusionDirectiveKind } |
The kind of preprocessed entity an object describes. More... | |
Public Member Functions | |
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 |
Protected Member Functions | |
PreprocessedEntity (EntityKind Kind, SourceRange Range) | |
Friends | |
class | PreprocessingRecord |
Base class that describes a preprocessed entity, which may be a preprocessor directive or macro expansion.
Definition at line 58 of file PreprocessingRecord.h.
The kind of preprocessed entity an object describes.
Definition at line 61 of file PreprocessingRecord.h.
|
inlineprotected |
Definition at line 94 of file PreprocessingRecord.h.
|
inline |
Retrieve the kind of preprocessed entity stored in this object.
Definition at line 99 of file PreprocessingRecord.h.
References Kind.
Referenced by clang::PreprocessingDirective::classof(), clang::MacroDefinitionRecord::classof(), clang::MacroExpansion::classof(), and clang::InclusionDirective::classof().
|
inline |
Retrieve the source range that covers this entire preprocessed entity.
Definition at line 103 of file PreprocessingRecord.h.
References Range.
Referenced by clang::PreprocessingRecord::addPreprocessedEntity(), clang::MacroDefinitionRecord::getLocation(), and isPreprocessedEntityIfInFileID().
|
inline |
Returns true if there was a problem loading the preprocessed entity.
Definition at line 107 of file PreprocessingRecord.h.
References InvalidKind, and Kind.
|
inlinenoexcept |
Definition at line 123 of file PreprocessingRecord.h.
|
inlinenoexcept |
Definition at line 124 of file PreprocessingRecord.h.
|
inlinenoexcept |
Definition at line 118 of file PreprocessingRecord.h.
|
inlinenoexcept |
Definition at line 111 of file PreprocessingRecord.h.
References bytes().
|
inlinenoexcept |
Definition at line 116 of file PreprocessingRecord.h.
|
friend |
Definition at line 92 of file PreprocessingRecord.h.