clang
3.7.0
|
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. More... | |
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.
|
static |
Definition at line 1246 of file ASTUnit.cpp.
References MD5, ModTime, clang::Result, and Size.
|
static |
Definition at line 1254 of file ASTUnit.cpp.
References MD5, ModTime, clang::Result, and Size.
|
friend |
|
friend |
Definition at line 1268 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 241 of file ASTUnit.h.
Referenced by createForFile(), createForMemoryBuffer(), and clang::operator==().
time_t clang::ASTUnit::PreambleFileHash::ModTime |
Modification time is set for files that are on disk. For memory buffers it is zero.
Definition at line 236 of file ASTUnit.h.
Referenced by createForFile(), createForMemoryBuffer(), and clang::operator==().
off_t clang::ASTUnit::PreambleFileHash::Size |
All files have size set.
Definition at line 232 of file ASTUnit.h.
Referenced by createForFile(), createForMemoryBuffer(), and clang::operator==().