clang API Documentation
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. | |
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) 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 () |
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 47 of file PreprocessingRecord.h.
The kind of preprocessed entity an object describes.
Definition at line 50 of file PreprocessingRecord.h.
clang::PreprocessedEntity::PreprocessedEntity | ( | EntityKind | Kind, |
SourceRange | Range | ||
) | [inline, protected] |
Definition at line 81 of file PreprocessingRecord.h.
EntityKind clang::PreprocessedEntity::getKind | ( | ) | const [inline] |
Retrieve the kind of preprocessed entity stored in this object.
Reimplemented in clang::InclusionDirective.
Definition at line 88 of file PreprocessingRecord.h.
Referenced by clang::PreprocessingDirective::classof(), clang::MacroDefinition::classof(), clang::MacroExpansion::classof(), and clang::InclusionDirective::classof().
SourceRange clang::PreprocessedEntity::getSourceRange | ( | ) | const [inline] |
Retrieve the source range that covers this entire preprocessed entity.
Definition at line 92 of file PreprocessingRecord.h.
Referenced by clang::PreprocessingRecord::addPreprocessedEntity(), and isPreprocessedEntityIfInFileID().
bool clang::PreprocessedEntity::isInvalid | ( | ) | const [inline] |
Returns true if there was a problem loading the preprocessed entity.
Definition at line 96 of file PreprocessingRecord.h.
void clang::PreprocessedEntity::operator delete | ( | void * | ptr, |
PreprocessingRecord & | PR, | ||
unsigned | alignment | ||
) | throw () [inline] |
Definition at line 109 of file PreprocessingRecord.h.
References operator delete().
void clang::PreprocessedEntity::operator delete | ( | void * | , |
std::size_t | |||
) | throw () [inline] |
Definition at line 114 of file PreprocessingRecord.h.
void clang::PreprocessedEntity::operator delete | ( | void * | , |
void * | |||
) | throw () [inline] |
Definition at line 115 of file PreprocessingRecord.h.
void* clang::PreprocessedEntity::operator new | ( | size_t | bytes, |
PreprocessingRecord & | PR, | ||
unsigned | alignment = 8 |
||
) | throw () [inline] |
Definition at line 100 of file PreprocessingRecord.h.
References operator new().
void* clang::PreprocessedEntity::operator new | ( | size_t | bytes, |
void * | mem | ||
) | throw () [inline] |
Definition at line 105 of file PreprocessingRecord.h.
friend class PreprocessingRecord [friend] |
Definition at line 84 of file PreprocessingRecord.h.