clang API Documentation
#include "clang/Basic/IdentifierTable.h"#include "clang/Basic/SourceLocation.h"#include "clang/Lex/PPCallbacks.h"#include "llvm/ADT/DenseMap.h"#include "llvm/ADT/Optional.h"#include "llvm/ADT/SmallVector.h"#include "llvm/Support/Allocator.h"#include "llvm/Support/Compiler.h"#include <vector>

Go to the source code of this file.
Classes | |
| class | clang::PreprocessedEntity |
| Base class that describes a preprocessed entity, which may be a preprocessor directive or macro expansion. More... | |
| class | clang::PreprocessingDirective |
| Records the presence of a preprocessor directive. More... | |
| class | clang::MacroDefinition |
| Record the location of a macro definition. More... | |
| class | clang::MacroExpansion |
| Records the location of a macro expansion. More... | |
| class | clang::InclusionDirective |
Record the location of an inclusion directive, such as an #include or #import statement. More... | |
| class | clang::ExternalPreprocessingRecordSource |
| An abstract class that should be subclassed by any external source of preprocessing record entries. More... | |
| class | clang::PreprocessingRecord |
| A record of the steps taken while preprocessing a source file, including the various preprocessing directives processed, macros expanded, etc. More... | |
| class | clang::PreprocessingRecord::PPEntityID |
| Global (loaded or local) ID for a preprocessed entity. Negative values are used to indicate preprocessed entities loaded from the external source while non-negative values are used to indicate preprocessed entities introduced by the current preprocessor. Value -1 corresponds to element 0 in the loaded entities vector, value -2 corresponds to element 1 in the loaded entities vector, etc. Value 0 is an invalid value, the index to local entities is 1-based, value 1 corresponds to element 0 in the local entities vector, value 2 corresponds to element 1 in the local entities vector, etc. | |
| class | clang::PreprocessingRecord::iterator |
Namespaces | |
| namespace | clang |
Functions | |
| void * | operator new (size_t bytes, clang::PreprocessingRecord &PR, unsigned alignment=8) throw () |
| Allocates memory within a Clang preprocessing record. | |
| void | operator delete (void *ptr, clang::PreprocessingRecord &PR, unsigned) throw () |
| Frees memory allocated in a Clang preprocessing record. | |
| void operator delete | ( | void * | ptr, |
| clang::PreprocessingRecord & | PR, | ||
| unsigned | |||
| ) | throw () [inline] |
Frees memory allocated in a Clang preprocessing record.
Definition at line 611 of file PreprocessingRecord.h.
References clang::PreprocessingRecord::Deallocate().
| void * operator new | ( | size_t | bytes, |
| clang::PreprocessingRecord & | PR, | ||
| unsigned | alignment = 8 |
||
| ) | throw () [inline] |
Allocates memory within a Clang preprocessing record.
Definition at line 606 of file PreprocessingRecord.h.