clang
3.7.0
|
Trait class used to search the on-disk hash table containing all of the header search information. More...
#include <ASTReaderInternals.h>
Classes | |
struct | internal_key_type |
Public Types | |
typedef const FileEntry * | external_key_type |
typedef const internal_key_type & | internal_key_ref |
typedef HeaderFileInfo | data_type |
typedef unsigned | hash_value_type |
typedef unsigned | offset_type |
Public Member Functions | |
HeaderFileInfoTrait (ASTReader &Reader, ModuleFile &M, HeaderSearch *HS, const char *FrameworkStrings) | |
bool | EqualKey (internal_key_ref a, internal_key_ref b) |
data_type | ReadData (internal_key_ref, const unsigned char *d, unsigned DataLen) |
Static Public Member Functions | |
static hash_value_type | ComputeHash (internal_key_ref ikey) |
static internal_key_type | GetInternalKey (const FileEntry *FE) |
static std::pair< unsigned, unsigned > | ReadKeyDataLength (const unsigned char *&d) |
static internal_key_type | ReadKey (const unsigned char *d, unsigned) |
Trait class used to search the on-disk hash table containing all of the header search information.
The on-disk hash table contains a mapping from each header path to information about that header (how many times it has been included, its controlling macro, etc.). Note that we actually hash based on the size and mtime, and support "deep" comparisons of file names based on current inode numbers, so that the search can cope with non-normalized path names and symlinks.
Definition at line 203 of file ASTReaderInternals.h.
Definition at line 220 of file ASTReaderInternals.h.
Definition at line 210 of file ASTReaderInternals.h.
Definition at line 221 of file ASTReaderInternals.h.
typedef const internal_key_type& clang::serialization::reader::HeaderFileInfoTrait::internal_key_ref |
Definition at line 218 of file ASTReaderInternals.h.
Definition at line 222 of file ASTReaderInternals.h.
|
inline |
Definition at line 224 of file ASTReaderInternals.h.
|
static |
Definition at line 1478 of file ASTReader.cpp.
References clang::serialization::reader::HeaderFileInfoTrait::internal_key_type::ModTime, and clang::serialization::reader::HeaderFileInfoTrait::internal_key_type::Size.
bool HeaderFileInfoTrait::EqualKey | ( | internal_key_ref | a, |
internal_key_ref | b | ||
) |
Definition at line 1489 of file ASTReader.cpp.
References clang::serialization::reader::HeaderFileInfoTrait::internal_key_type::Filename, clang::FileManager::getFile(), clang::ASTReader::getFileManager(), clang::serialization::reader::HeaderFileInfoTrait::internal_key_type::ModTime, clang::ASTReader::ResolveImportedPath(), and clang::serialization::reader::HeaderFileInfoTrait::internal_key_type::Size.
|
static |
Definition at line 1483 of file ASTReader.cpp.
References clang::FileEntry::getModificationTime(), clang::FileEntry::getName(), and clang::FileEntry::getSize().
HeaderFileInfoTrait::data_type HeaderFileInfoTrait::ReadData | ( | internal_key_ref | key, |
const unsigned char * | d, | ||
unsigned | DataLen | ||
) |
Definition at line 1533 of file ASTReader.cpp.
References clang::ModuleMap::addHeader(), End, clang::serialization::reader::HeaderFileInfoTrait::internal_key_type::Filename, clang::FileManager::getFile(), clang::HeaderFileInfo::HeaderRole, and clang::serialization::reader::HeaderFileInfoTrait::internal_key_type::Imported.
|
static |
Definition at line 1522 of file ASTReader.cpp.
References clang::serialization::reader::HeaderFileInfoTrait::internal_key_type::Size.
|
static |
Definition at line 1514 of file ASTReader.cpp.