| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | StmtOpenMP.cpp | 134 if (!Dir) in doForAllLoops() 270 return Dir; in Create() 289 return Dir; in Create() 324 return Dir; in Create() 369 return Dir; in Create() 417 return Dir; in Create() 440 return Dir; in Create() 482 return Dir; in Create() 503 return Dir; in Create() 519 auto *Dir = in Create() local [all …]
|
| /llvm-project-15.0.7/clang/lib/IndexSerialization/ |
| H A D | SerializablePathCollection.cpp | 30 return Paths.add(Dir); in addDirPath() 55 Paths.addFilePath(Dir.Root, Dir.Path, sys::path::filename(FE.getName())); in tryStoreFilePath() 63 while (Dir.size() > 1 && llvm::sys::path::is_separator(Dir.back())) in tryStoreDirPath() 64 Dir = Dir.drop_back(); in tryStoreDirPath() 66 auto DirIt = UniqueDirs.find(Dir); in tryStoreDirPath() 70 const std::string OrigDir = Dir.str(); in tryStoreDirPath() 73 if (!SysRoot.empty() && Dir.startswith(SysRoot) && in tryStoreDirPath() 76 Dir = Dir.drop_front(SysRoot.size()); in tryStoreDirPath() 80 Dir = Dir.drop_front(WorkDir.size()); in tryStoreDirPath() 84 while (!Dir.empty() && llvm::sys::path::is_separator(Dir.front())) in tryStoreDirPath() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.weakly_canonical/ |
| H A D | weakly_canonical.pass.cpp | 46 {static_env.Dir, static_env.Dir}, in main() 47 {static_env.SymlinkToDir, static_env.Dir}, in main() 48 {static_env.SymlinkToDir / "dir2/.", static_env.Dir / "dir2"}, in main() 52 {static_env.SymlinkToDir / "dir2/./", static_env.Dir / "dir2"}, in main() 53 {static_env.SymlinkToDir / "dir2/DNE/./", static_env.Dir / "dir2/DNE/"}, in main() 64 {static_env.Dir / "../dir1", static_env.Dir}, in main() 65 {static_env.Dir / "./.", static_env.Dir}, in main() 66 {static_env.Dir / "DNE/../foo", static_env.Dir / "foo"} in main()
|
| /llvm-project-15.0.7/clang/tools/scan-build/bin/ |
| H A D | scan-build | 105 my $Dir = shift; 162 while ($Dir =~ /\/$/) { chop $Dir; } 180 if (-d $Dir) { 181 if (! -r $Dir) { 214 if (-x $Dir) { 253 my $Dir = shift; 358 my $Dir = shift; 366 open(IN, "$Dir/$FName") or DieDiag("Cannot open '$Dir/$FName'\n"); 449 my $Dir = shift; 546 if (! -d $Dir) { [all …]
|
| /llvm-project-15.0.7/llvm/utils/TableGen/ |
| H A D | DirectiveEmitter.cpp | 142 Directive Dir{D}; in HasDuplicateClausesInDirectives() local 145 if (HasDuplicateClauses(Dir.getAllowedClauses(), Dir, Clauses) || in HasDuplicateClausesInDirectives() 146 HasDuplicateClauses(Dir.getAllowedOnceClauses(), Dir, Clauses) || in HasDuplicateClausesInDirectives() 147 HasDuplicateClauses(Dir.getAllowedExclusiveClauses(), Dir, Clauses)) { in HasDuplicateClausesInDirectives() 152 if (HasDuplicateClauses(Dir.getAllowedClauses(), Dir, Clauses) || in HasDuplicateClausesInDirectives() 153 HasDuplicateClauses(Dir.getRequiredClauses(), Dir, Clauses)) { in HasDuplicateClausesInDirectives() 395 Directive Dir{D}; in GenerateIsAllowedClause() local 468 Directive Dir{D}; in GenerateDirectiveClauseSets() local 473 GenerateClauseSet(Dir.getAllowedClauses(), OS, "allowedClauses_", Dir, in GenerateDirectiveClauseSets() 479 GenerateClauseSet(Dir.getRequiredClauses(), OS, "requiredClauses_", Dir, in GenerateDirectiveClauseSets() [all …]
|
| /llvm-project-15.0.7/libc/src/__support/File/ |
| H A D | dir.h | 36 class Dir { 53 Dir() = delete; 54 Dir(const Dir &) = delete; 55 ~Dir() = delete; 57 Dir &operator=(const Dir &) = delete; 59 static Dir *open(const char *path);
|
| H A D | dir.cpp | 15 Dir *Dir::open(const char *path) { in open() 20 Dir *dir = reinterpret_cast<Dir *>(malloc(sizeof(Dir))); in open() 29 struct ::dirent *Dir::read() { in read() 49 int Dir::close() { in close()
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | HeaderSearch.cpp | 263 if (!Dir) in getCachedModuleFileNameImpl() 545 if (!Dir) in getTopFrameworkDir() 609 if (!Dir) in DoFrameworkLookup() 672 if (!Dir) in DoFrameworkLookup() 1191 if (!Dir) in LookupSubframeworkHeader() 1491 if (!Dir) in hasModuleMap() 1642 if (!Dir) { in loadModuleMapFile() 1808 Dir != DirEnd && !EC; Dir.increment(EC)) { in collectAllModules() 1871 Dir != DirEnd && !EC; Dir.increment(EC)) { in loadSubdirectoryModuleMaps() 1900 llvm::SmallString<32> DirPath(Dir.begin(), Dir.end()); in suggestPathToFileForDiagnostics() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/ |
| H A D | recursion_pending.pass.cpp | 33 recursive_directory_iterator it(static_env.Dir); in TEST_CASE() 40 recursive_directory_iterator rec_pending_it(static_env.Dir); in TEST_CASE() 54 recursive_directory_iterator it(static_env.Dir); in TEST_CASE() 61 recursive_directory_iterator it2(static_env.Dir); in TEST_CASE() 73 recursive_directory_iterator rec_pending_it(static_env.Dir); in TEST_CASE() 87 recursive_directory_iterator it(static_env.Dir); in TEST_CASE() 93 recursive_directory_iterator it2(static_env.Dir); in TEST_CASE() 107 recursive_directory_iterator it(static_env.Dir); in TEST_CASE() 115 recursive_directory_iterator it(static_env.Dir); in TEST_CASE() 123 recursive_directory_iterator it(static_env.Dir); in TEST_CASE() [all …]
|
| /llvm-project-15.0.7/clang/lib/Driver/ToolChains/ |
| H A D | BareMetal.cpp | 99 getProgramPaths().push_back(getDriver().Dir); in BareMetal() 185 SmallString<128> Dir(getDriver().ResourceDir); in getRuntimesDir() local 187 Dir += SelectedMultilib.gccSuffix(); in getRuntimesDir() 188 return std::string(Dir.str()); in getRuntimesDir() 210 llvm::sys::path::append(Dir, "include"); in AddClangSystemIncludeArgs() 215 SmallString<128> Dir(computeSysRoot()); in AddClangSystemIncludeArgs() local 216 if (!Dir.empty()) { in AddClangSystemIncludeArgs() 217 llvm::sys::path::append(Dir, "include"); in AddClangSystemIncludeArgs() 242 SmallString<128> Dir(SysRoot); in AddClangCXXStdlibIncludeArgs() local 248 SmallString<128> Dir(SysRoot); in AddClangCXXStdlibIncludeArgs() local [all …]
|
| H A D | Hurd.cpp | 95 if (StringRef(D.Dir).startswith(SysRoot)) { in Hurd() 96 addPathIfExists(D, D.Dir + "/../lib/" + MultiarchTriple, Paths); in Hurd() 97 addPathIfExists(D, D.Dir + "/../" + OSLibDir, Paths); in Hurd() 113 if (StringRef(D.Dir).startswith(SysRoot)) in Hurd() 114 addPathIfExists(D, D.Dir + "/../lib", Paths); in Hurd() 160 for (StringRef Dir : Dirs) { in AddClangSystemIncludeArgs() local 162 llvm::sys::path::is_absolute(Dir) ? "" : StringRef(SysRoot); in AddClangSystemIncludeArgs() 163 addExternCSystemInclude(DriverArgs, CC1Args, Prefix + Dir); in AddClangSystemIncludeArgs()
|
| /llvm-project-15.0.7/clang/include/clang/Lex/ |
| H A D | DirectoryLookup.h | 41 DirectoryEntryRef Dir; member 47 DLU(DirectoryEntryRef Dir) : Dir(Dir) {} in DLU() argument 68 DirectoryLookup(DirectoryEntryRef Dir, SrcMgr::CharacteristicKind DT, in DirectoryLookup() argument 70 : u(Dir), DirCharacteristic(DT), in DirectoryLookup() 91 return isNormalDir() ? &u.Dir.getDirEntry() : nullptr; in getDir() 95 return isNormalDir() ? Optional<DirectoryEntryRef>(u.Dir) : None; in getDirRef() 101 return isFramework() ? &u.Dir.getDirEntry() : nullptr; in getFrameworkDir() 105 return isFramework() ? Optional<DirectoryEntryRef>(u.Dir) : None; in getFrameworkDirRef()
|
| /llvm-project-15.0.7/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerIOPosix.cpp | 55 void ListFilesInDirRecursive(const std::string &Dir, long *Epoch, in ListFilesInDirRecursive() argument 57 auto E = GetEpoch(Dir); in ListFilesInDirRecursive() 61 DIR *D = opendir(Dir.c_str()); in ListFilesInDirRecursive() 63 Printf("%s: %s; exiting\n", strerror(errno), Dir.c_str()); in ListFilesInDirRecursive() 67 std::string Path = DirPlusFile(Dir, E->d_name); in ListFilesInDirRecursive() 81 void IterateDirRecursive(const std::string &Dir, in IterateDirRecursive() argument 82 void (*DirPreCallback)(const std::string &Dir), in IterateDirRecursive() argument 85 DirPreCallback(Dir); in IterateDirRecursive() 86 DIR *D = opendir(Dir.c_str()); in IterateDirRecursive() 89 std::string Path = DirPlusFile(Dir, E->d_name); in IterateDirRecursive() [all …]
|
| H A D | FuzzerIOWindows.cpp | 113 void ListFilesInDirRecursive(const std::string &Dir, long *Epoch, in ListFilesInDirRecursive() argument 115 auto E = GetEpoch(Dir); in ListFilesInDirRecursive() 119 std::string Path(Dir); in ListFilesInDirRecursive() 132 Printf("No such file or directory: %s; exiting\n", Dir.c_str()); in ListFilesInDirRecursive() 137 std::string FileName = DirPlusFile(Dir, FindInfo.cFileName); in ListFilesInDirRecursive() 162 void IterateDirRecursive(const std::string &Dir, in IterateDirRecursive() argument 167 DirPreCallback(Dir); in IterateDirRecursive() 169 DWORD DirAttrs = GetFileAttributesA(Dir.c_str()); in IterateDirRecursive() 172 std::string TargetDir(Dir); in IterateDirRecursive() 191 std::string Path = DirPlusFile(Dir, FindInfo.cFileName); in IterateDirRecursive() [all …]
|
| H A D | FuzzerIO.h | 72 void ListFilesInDirRecursive(const std::string &Dir, long *Epoch, 75 bool MkDirRecursive(const std::string &Dir); 76 void RmDirRecursive(const std::string &Dir); 81 void IterateDirRecursive(const std::string &Dir, 82 void (*DirPreCallback)(const std::string &Dir), 83 void (*DirPostCallback)(const std::string &Dir), 84 void (*FileCallback)(const std::string &Dir)); 92 void GetSizedFilesFromDir(const std::string &Dir, std::vector<SizedFile> *V);
|
| H A D | FuzzerIO.cpp | 123 void GetSizedFilesFromDir(const std::string &Dir, std::vector<SizedFile> *V) { in GetSizedFilesFromDir() argument 125 ListFilesInDirRecursive(Dir, 0, &Files, /*TopDir*/true); in GetSizedFilesFromDir() 176 const std::string &Dir = DirName(Leaf); in MkDirRecursiveInner() local 178 if (IsDirectory(Dir)) { in MkDirRecursiveInner() 183 bool ret = MkDirRecursiveInner(Dir); in MkDirRecursiveInner() 193 bool MkDirRecursive(const std::string &Dir) { in MkDirRecursive() argument 194 if (Dir.empty()) in MkDirRecursive() 197 if (IsDirectory(Dir)) in MkDirRecursive() 200 return MkDirRecursiveInner(Dir); in MkDirRecursive() 203 void RmDirRecursive(const std::string &Dir) { in RmDirRecursive() argument [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.relative/ |
| H A D | relative.pass.cpp | 52 fs::path p(static_env.Dir); in TEST_CASE() 54 TEST_CHECK(output == fs::path::string_type(static_env.Dir)); in TEST_CASE() 61 TEST_CHECK(output == fs::path::string_type(static_env.Dir)); in TEST_CASE() 68 TEST_CHECK(output == fs::path::string_type(static_env.Dir / "dir2")); in TEST_CASE() 77 TEST_CHECK(output == fs::path::string_type(static_env.Dir / "dir2")); in TEST_CASE() 120 fs::path p(static_env.Dir / "../dir1"); in TEST_CASE() 122 TEST_CHECK(output == fs::path::string_type(static_env.Dir)); in TEST_CASE() 127 fs::path p(static_env.Dir / "./."); in TEST_CASE() 129 TEST_CHECK(output == fs::path::string_type(static_env.Dir)); in TEST_CASE() 134 fs::path p(static_env.Dir / "DNE/../foo"); in TEST_CASE() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.canonical/ |
| H A D | canonical.pass.cpp | 45 const path DirName = static_env.Dir.filename(); in TEST_CASE() 56 { DirName / ".." / "." / DirName, static_env.Dir, Root }, in TEST_CASE() 57 { static_env.Dir2 / "..", static_env.Dir, Root }, in TEST_CASE() 58 { static_env.Dir3 / "../..", static_env.Dir, Root }, in TEST_CASE() 59 { static_env.Dir / ".", static_env.Dir, Root }, in TEST_CASE() 60 { Root / "." / DirName / ".." / DirName, static_env.Dir, Root }, in TEST_CASE() 62 static_env.Dir, in TEST_CASE() 108 fs::current_path(static_env.Dir); in TEST_CASE() 114 LIBCPP_ONLY(TEST_CHECK(err.path2() == static_env.Dir)); in TEST_CASE()
|
| /llvm-project-15.0.7/llvm/include/llvm/DebugInfo/GSYM/ |
| H A D | FileEntry.h | 28 uint32_t Dir = 0; member 33 FileEntry(uint32_t D, uint32_t B) : Dir(D), Base(B) {} in FileEntry() 38 return Base == RHS.Base && Dir == RHS.Dir; 41 return Base != RHS.Base || Dir != RHS.Dir; 57 return llvm::hash_combine(DenseMapInfo<uint32_t>::getHashValue(Val.Dir),
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/GSYM/ |
| H A D | LookupResult.cpp | 23 if (!Locations[Index].Dir.empty()) { in getSourceFile() 25 Fullpath = std::string(Locations[Index].Dir); in getSourceFile() 28 llvm::sys::path::append(Storage, Locations[Index].Dir, in getSourceFile() 42 if (SL.Dir.size() || SL.Base.size()) { in operator <<() 44 if (!SL.Dir.empty()) { in operator <<() 45 OS << SL.Dir; in operator <<() 46 if (SL.Dir.contains('\\') && !SL.Dir.contains('/')) in operator <<()
|
| /llvm-project-15.0.7/compiler-rt/test/profile/ |
| H A D | instrprof-set-dir-mode.c | 20 char *Dir = strdup(TestDir); in test() local 21 if (!Dir) in test() 24 __llvm_profile_recursive_mkdir(Dir); in test() 35 if (stat(Dir, &DirSt) == -1) in test() 40 DirSt.st_mode, Dir); in test() 45 free(Dir); in test()
|
| /llvm-project-15.0.7/lldb/unittests/tools/lldb-server/tests/ |
| H A D | TestBase.cpp | 20 const char *Dir = getenv("LOG_FILE_DIRECTORY"); in getLogFileName() local 21 if (!Dir) in getLogFileName() 24 if (!llvm::sys::fs::is_directory(Dir)) { in getLogFileName() 25 GTEST_LOG_(WARNING) << "Cannot access log directory: " << Dir; in getLogFileName() 29 SmallString<64> DirStr(Dir); in getLogFileName()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-doc/assets/ |
| H A D | index.js | 20 var Dir = CurrentDirectory; 22 while (Dir) { 23 if (Dir == FilePath) 25 Dir = Dir.substring(0, Dir.lastIndexOf("/")); 28 Result = append(Result, FilePath.substring(Dir.length))
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.hard_lk_ct/ |
| H A D | hard_link_count.pass.cpp | 60 TEST_CHECK(hard_link_count(static_env.Dir) == DirExpect || in TEST_CASE() 61 hard_link_count(static_env.Dir) == DirExpectAlt || in TEST_CASE() 62 hard_link_count(static_env.Dir) == 1); in TEST_CASE() 68 TEST_CHECK(hard_link_count(static_env.Dir, ec) == DirExpect || in TEST_CASE() 69 hard_link_count(static_env.Dir, ec) == DirExpectAlt || in TEST_CASE() 70 hard_link_count(static_env.Dir) == 1); in TEST_CASE()
|
| /llvm-project-15.0.7/clang/include/clang/IndexSerialization/ |
| H A D | SerializablePathCollection.h | 62 DirPath Dir; member 65 FilePath(const DirPath &Dir, const StringPool::StringOffsetSize &Filename) in FilePath() 66 : Dir(Dir), Filename(Filename) {} in FilePath() 70 size_t addFilePath(RootDirKind Root, const StringPool::StringOffsetSize &Dir, 74 StringPool::StringOffsetSize addDirPath(StringRef Dir);
|