clang
7.0.0
|
#include "clang/Lex/PTHManager.h"
Classes | |
class | PTHFileLookupTrait |
class | PTHStringLookupTrait |
Public Types | |
enum | { Version = 10 } |
Public Member Functions | |
PTHManager (const PTHManager &)=delete | |
PTHManager & | operator= (const PTHManager &)=delete |
~PTHManager () override | |
const char * | getOriginalSourceFile () const |
getOriginalSourceFile - Return the full path to the original header file name that was used to generate the PTH cache. More... | |
IdentifierInfo * | get (StringRef Name) override |
get - Return the identifier token info for the specified named identifier. More... | |
void | setPreprocessor (Preprocessor *pp) |
PTHLexer * | CreateLexer (FileID FID) |
CreateLexer - Return a PTHLexer that "lexes" the cached tokens for the specified file. More... | |
std::unique_ptr< FileSystemStatCache > | createStatCache () |
createStatCache - Returns a FileSystemStatCache object for use with FileManager objects. More... | |
![]() | |
virtual | ~IdentifierInfoLookup () |
virtual IdentifierIterator * | getIdentifiers () |
Retrieve an iterator into the set of all identifiers known to this identifier lookup source. More... | |
Static Public Member Functions | |
static PTHManager * | Create (StringRef file, DiagnosticsEngine &Diags) |
Create - This method creates PTHManager objects. More... | |
Friends | |
class | PTHLexer |
class | PTHStatCache |
Definition at line 38 of file PTHManager.h.
anonymous enum |
Enumerator | |
---|---|
Version |
Definition at line 111 of file PTHManager.h.
|
delete |
|
overridedefault |
Referenced by clang::PTHManager::PTHStringLookupTrait::ReadData().
|
static |
Create - This method creates PTHManager objects.
The 'file' argument is the name of the PTH file. This method returns nullptr upon failure.
Definition at line 450 of file PTHLexer.cpp.
References clang::Create(), clang::IdentifierInfo::getNameStart(), InvalidPTH(), clang::PTHLexer::PTHManager, clang::DiagnosticsEngine::Report(), and Version.
Referenced by clang::CompilerInstance::createPreprocessor().
CreateLexer - Return a PTHLexer that "lexes" the cached tokens for the specified file.
This method returns nullptr if no cached tokens exist. It is the responsibility of the caller to 'delete' the returned object.
Definition at line 612 of file PTHLexer.cpp.
References clang::SourceManager::getFileEntryForID(), clang::Preprocessor::getSourceManager(), and clang::PreprocessorLexer::PP.
std::unique_ptr< FileSystemStatCache > PTHManager::createStatCache | ( | ) |
createStatCache - Returns a FileSystemStatCache object for use with FileManager objects.
These objects use the PTH data to speed up calls to stat by memoizing their results from when the PTH file was generated.
Definition at line 746 of file PTHLexer.cpp.
|
overridevirtual |
get - Return the identifier token info for the specified named identifier.
Unlike the version in IdentifierTable, this returns a pointer instead of a reference. If the pointer is nullptr then the IdentifierInfo cannot be found.
Implements clang::IdentifierInfoLookup.
Definition at line 599 of file PTHLexer.cpp.
Referenced by clang::Preprocessor::getPTHManager().
|
inline |
getOriginalSourceFile - Return the full path to the original header file name that was used to generate the PTH cache.
Definition at line 119 of file PTHManager.h.
|
delete |
|
inline |
Definition at line 133 of file PTHManager.h.
|
friend |
Definition at line 39 of file PTHManager.h.
|
friend |
Definition at line 40 of file PTHManager.h.