clang
3.9.0
|
Base class that describes a preprocessed entity, which may be a preprocessor directive or macro expansion. More...
#include <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. 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) LLVM_NOEXCEPT |
void * | operator new (size_t bytes, void *mem) LLVM_NOEXCEPT |
void | operator delete (void *ptr, PreprocessingRecord &PR, unsigned alignment) LLVM_NOEXCEPT |
void | operator delete (void *, std::size_t) LLVM_NOEXCEPT |
void | operator delete (void *, void *) LLVM_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 48 of file PreprocessingRecord.h.
The kind of preprocessed entity an object describes.
Definition at line 51 of file PreprocessingRecord.h.
|
inlineprotected |
Definition at line 82 of file PreprocessingRecord.h.
|
inline |
Retrieve the kind of preprocessed entity stored in this object.
Definition at line 89 of file PreprocessingRecord.h.
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 93 of file PreprocessingRecord.h.
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 97 of file PreprocessingRecord.h.
References InvalidKind.
|
inline |
Definition at line 108 of file PreprocessingRecord.h.
|
inline |
Definition at line 113 of file PreprocessingRecord.h.
|
inline |
Definition at line 114 of file PreprocessingRecord.h.
|
inline |
Definition at line 101 of file PreprocessingRecord.h.
References bytes().
|
inline |
Definition at line 106 of file PreprocessingRecord.h.
|
friend |
Definition at line 85 of file PreprocessingRecord.h.