/external/clang/lib/Basic/ |
H A D | FileSystemStatCache.cpp | 42 bool FileSystemStatCache::get(const char *Path, struct stat &StatBuf, argument 49 R = Cache->getStat(Path, StatBuf, FileDescriptor); 52 R = ::stat(Path, &StatBuf) != 0 ? CacheMissing : CacheExists; 74 if (::fstat(*FileDescriptor, &StatBuf) == 0) 91 if (S_ISDIR(StatBuf.st_mode) != isForDir) { 106 MemorizeStatCalls::getStat(const char *Path, struct stat &StatBuf, argument 108 LookupResult Result = statChained(Path, StatBuf, FileDescriptor); 118 if (!S_ISDIR(StatBuf.st_mode) || llvm::sys::path::is_absolute(Path)) 119 StatCalls[Path] = StatBuf;
|
H A D | FileManager.cpp | 88 const struct stat & /*StatBuf*/) { 105 FileEntry &getFile(const char *Name, const struct stat & /*StatBuf*/) { 131 const struct stat &StatBuf) { 132 return UniqueDirs[std::make_pair(StatBuf.st_dev, StatBuf.st_ino)]; 146 FileEntry &getFile(const char * /*Name*/, const struct stat &StatBuf) { argument 149 *UniqueFiles.insert(FileEntry(StatBuf.st_dev, 150 StatBuf.st_ino, 151 StatBuf.st_mode)).first); 294 struct stat StatBuf; local 130 getDirectory(const char * , const struct stat &StatBuf) argument 362 struct stat StatBuf; local 432 struct stat StatBuf; local 544 getStatValue(const char *Path, struct stat &StatBuf, int *FileDescriptor) argument 559 getNoncachedStatValue(StringRef Path, struct stat &StatBuf) argument [all...] |
H A D | SourceManager.cpp | 1419 struct stat StatBuf; local 1420 if (::stat(File->getName(), &StatBuf)) 1423 return StatBuf.st_ino;
|
/external/clang/include/clang/Basic/ |
H A D | FileSystemStatCache.h | 50 static bool get(const char *Path, struct stat &StatBuf, int *FileDescriptor, 69 virtual LookupResult getStat(const char *Path, struct stat &StatBuf, 72 LookupResult statChained(const char *Path, struct stat &StatBuf, argument 75 return Next->getStat(Path, StatBuf, FileDescriptor); 79 return get(Path, StatBuf, FileDescriptor, 0) ? CacheMissing : CacheExists; 97 virtual LookupResult getStat(const char *Path, struct stat &StatBuf,
|
/external/clang/unittests/Basic/ |
H A D | FileManagerTest.cpp | 54 virtual LookupResult getStat(const char *Path, struct stat &StatBuf, argument 57 StatBuf = StatCalls[Path];
|
/external/llvm/lib/Support/ |
H A D | LockFileManager.cpp | 127 struct stat StatBuf; local 128 if (stat(UniqueLockFileName.c_str(), &StatBuf) == 0 && 129 StatBuf.st_nlink == 2)
|
/external/clang/lib/Serialization/ |
H A D | ASTReaderInternals.h | 194 int StatSimpleCache(const char *Path, struct stat *StatBuf) { argument 199 *StatBuf = SearchPathStatBuf; 203 return stat(Path, StatBuf);
|
H A D | ASTReader.cpp | 911 LookupResult getStat(const char *Path, struct stat &StatBuf, argument 919 return statChained(Path, StatBuf, FileDescriptor); 925 StatBuf.st_ino = Data.ino; 926 StatBuf.st_dev = Data.dev; 927 StatBuf.st_mtime = Data.mtime; 928 StatBuf.st_mode = Data.mode; 929 StatBuf.st_size = Data.size; 2479 struct stat StatBuf; local 2480 if (::stat(File->getName(), &StatBuf) != 0) { 2481 StatBuf [all...] |
/external/clang/lib/Frontend/ |
H A D | CacheTokens.cpp | 61 struct stat *StatBuf; member in class:__anon3203::PTHEntryKeyVariant 64 : FE(fe), Kind(IsFE), StatBuf(0) {} 67 : Path(path), Kind(IsDE), StatBuf(new struct stat(*statbuf)) {} 70 : Path(path), Kind(IsNoExist), StatBuf(0) {} 92 ::Emit32(Out, (uint32_t) StatBuf->st_ino); 93 ::Emit32(Out, (uint32_t) StatBuf->st_dev); 94 ::Emit16(Out, (uint16_t) StatBuf->st_mode); 95 ::Emit64(Out, (uint64_t) StatBuf->st_mtime); 96 ::Emit64(Out, (uint64_t) StatBuf->st_size); 97 delete StatBuf; 519 getStat(const char *Path, struct stat &StatBuf, int *FileDescriptor) argument [all...] |
H A D | ASTUnit.cpp | 1367 struct stat StatBuf; local 1368 if (FileMgr->getNoncachedStatValue(R->second, StatBuf)) { 1375 OverriddenFiles[R->first] = std::make_pair(StatBuf.st_size, 1376 StatBuf.st_mtime); 1405 struct stat StatBuf; local 1406 if (FileMgr->getNoncachedStatValue(F->first(), StatBuf)) { 1409 } else if (StatBuf.st_size != F->second.first || 1410 StatBuf.st_mtime != F->second.second)
|
/external/clang/lib/Lex/ |
H A D | PTHLexer.cpp | 684 LookupResult getStat(const char *Path, struct stat &StatBuf, argument 691 return statChained(Path, StatBuf, FileDescriptor); 698 StatBuf.st_ino = Data.ino; 699 StatBuf.st_dev = Data.dev; 700 StatBuf.st_mtime = Data.mtime; 701 StatBuf.st_mode = Data.mode; 702 StatBuf.st_size = Data.size;
|