|
clang
3.8.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 |
| Modification time is set for files that are on disk. More... | |
| llvm::MD5::MD5Result | MD5 |
| Memory buffers have MD5 instead of modification time. More... | |
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 1247 of file ASTUnit.cpp.
References MD5, ModTime, clang::Result, and Size.
|
static |
Definition at line 1255 of file ASTUnit.cpp.
References MD5, ModTime, clang::Result, and Size.
|
friend |
|
friend |
Definition at line 1269 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==().
1.8.6