clang API Documentation

Classes | Public Types | Public Member Functions | Static Public Member Functions | Friends
clang::PTHManager Class Reference

#include <PTHManager.h>

Inheritance diagram for clang::PTHManager:
Inheritance graph
[legend]
Collaboration diagram for clang::PTHManager:
Collaboration graph
[legend]

List of all members.

Classes

class  PTHFileLookupTrait
class  PTHStringLookupTrait

Public Types

enum  { Version = 10 }

Public Member Functions

 ~PTHManager ()
const char * getOriginalSourceFile () const
IdentifierInfoget (StringRef Name) override
void setPreprocessor (Preprocessor *pp)
PTHLexerCreateLexer (FileID FID)
std::unique_ptr
< FileSystemStatCache
createStatCache ()

Static Public Member Functions

static PTHManagerCreate (const std::string &file, DiagnosticsEngine &Diags)

Friends

class PTHLexer
class PTHStatCache

Detailed Description

Definition at line 37 of file PTHManager.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
Version 

Definition at line 113 of file PTHManager.h.


Constructor & Destructor Documentation

Definition at line 427 of file PTHLexer.cpp.


Member Function Documentation

PTHManager * PTHManager::Create ( const std::string &  file,
DiagnosticsEngine Diags 
) [static]

Create - This method creates PTHManager objects. The 'file' argument is the name of the PTH file. This method returns NULL upon failure.

Definition at line 434 of file PTHLexer.cpp.

References InvalidPTH(), and clang::DiagnosticsEngine::Report().

Referenced by clang::CompilerInstance::createPreprocessor().

CreateLexer - Return a PTHLexer that "lexes" the cached tokens for the specified file. This method returns NULL if no cached tokens exist. It is the responsibility of the caller to 'delete' the returned object.

Definition at line 596 of file PTHLexer.cpp.

References data().

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 727 of file PTHLexer.cpp.

IdentifierInfo * PTHManager::get ( StringRef  Name) [override, virtual]

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 NULL then the IdentifierInfo cannot be found.

Implements clang::IdentifierInfoLookup.

Definition at line 583 of file PTHLexer.cpp.

const char* clang::PTHManager::getOriginalSourceFile ( ) const [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.

Referenced by AddImplicitIncludePTH().

Definition at line 133 of file PTHManager.h.

Referenced by clang::CompilerInstance::createPreprocessor().


Friends And Related Function Documentation

friend class PTHLexer [friend]

Definition at line 38 of file PTHManager.h.

friend class PTHStatCache [friend]

Definition at line 40 of file PTHManager.h.


The documentation for this class was generated from the following files: