clang API Documentation
Data used to determine if a file used in the preamble has been changed. More...
#include <ASTUnit.h>
Static Public Member Functions | |
static PreambleFileHash | createForFile (off_t Size, time_t ModTime) |
static PreambleFileHash | createForMemoryBuffer (const llvm::MemoryBuffer *Buffer) |
Public Attributes | |
off_t | Size |
All files have size set. | |
time_t | ModTime |
llvm::MD5::MD5Result | MD5 |
Friends | |
bool | operator== (const PreambleFileHash &LHS, const PreambleFileHash &RHS) |
bool | operator!= (const PreambleFileHash &LHS, const PreambleFileHash &RHS) |
Data used to determine if a file used in the preamble has been changed.
ASTUnit::PreambleFileHash ASTUnit::PreambleFileHash::createForFile | ( | off_t | Size, |
time_t | ModTime | ||
) | [static] |
Definition at line 1237 of file ASTUnit.cpp.
ASTUnit::PreambleFileHash ASTUnit::PreambleFileHash::createForMemoryBuffer | ( | const llvm::MemoryBuffer * | Buffer | ) | [static] |
Definition at line 1245 of file ASTUnit.cpp.
bool operator!= | ( | const PreambleFileHash & | LHS, |
const PreambleFileHash & | RHS | ||
) | [friend] |
bool operator== | ( | const PreambleFileHash & | LHS, |
const PreambleFileHash & | RHS | ||
) | [friend] |
Definition at line 1259 of file ASTUnit.cpp.
llvm::MD5::MD5Result clang::ASTUnit::PreambleFileHash::MD5 |
Memory buffers have MD5 instead of modification time. We don't compute MD5 for on-disk files because we hope that modification time is enough to tell if the file was changed.
Definition at line 239 of file ASTUnit.h.
Referenced by createForFile(), createForMemoryBuffer(), and clang::operator==().
Modification time is set for files that are on disk. For memory buffers it is zero.
Definition at line 234 of file ASTUnit.h.
Referenced by createForFile(), createForMemoryBuffer(), and clang::operator==().
All files have size set.
Definition at line 230 of file ASTUnit.h.
Referenced by createForFile(), createForMemoryBuffer(), and clang::operator==().