Home
last modified time | relevance | path

Searched refs:DirName (Results 1 – 25 of 32) sorted by relevance

12

/llvm-project-15.0.7/clang/lib/Basic/
H A DFileManager.cpp84 if (DirName.empty()) in getDirectoryFromFile()
85 DirName = "."; in getDirectoryFromFile()
94 if (DirName.empty()) in addAncestorsAsVirtualDirs()
95 DirName = "."; in addAncestorsAsVirtualDirs()
122 if (DirName.size() > 1 && in getDirectoryRef()
123 DirName != llvm::sys::path::root_path(DirName) && in getDirectoryRef()
125 DirName = DirName.substr(0, DirName.size()-1); in getDirectoryRef()
130 if (DirName.size() > 1 && DirName.back() == ':' && in getDirectoryRef()
131 DirName.equals_insensitive(llvm::sys::path::root_name(DirName))) { in getDirectoryRef()
133 DirName = *DirNameStr; in getDirectoryRef()
[all …]
/llvm-project-15.0.7/lldb/unittests/Target/
H A DFindFileTest.cpp66 llvm::SmallString<128> DirName, FileName; in TEST_F() local
69 ASSERT_NO_ERROR(createUniqueDirectory(Info->name(), DirName)); in TEST_F()
71 sys::path::append(FileName, Twine(DirName), Twine("test")); in TEST_F()
74 llvm::FileRemover dir_remover(DirName); in TEST_F()
78 map.Append("/old", DirName.str(), false); in TEST_F()
79 map.Append(R"(C:\foo)", DirName.str(), false); in TEST_F()
82 {"/old", llvm::sys::path::Style::posix, DirName.c_str()}, in TEST_F()
84 {R"(C:\foo)", llvm::sys::path::Style::windows, DirName.c_str()}, in TEST_F()
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.canonical/
H A Dcanonical.pass.cpp45 const path DirName = static_env.Dir.filename(); in TEST_CASE() local
56 { DirName / ".." / "." / DirName, static_env.Dir, Root }, in TEST_CASE()
60 { Root / "." / DirName / ".." / DirName, static_env.Dir, Root }, in TEST_CASE()
61 { path("..") / "." / RootName / DirName / ".." / DirName, in TEST_CASE()
/llvm-project-15.0.7/clang/lib/Lex/
H A DHeaderSearch.cpp265 auto DirName = FileMgr.getCanonicalName(*Dir); in getCachedModuleFileNameImpl() local
536 DirName = FileMgr.getCanonicalName(*TopFrameworkDir); in getTopFrameworkDir()
539 DirName = llvm::sys::path::parent_path(DirName); in getTopFrameworkDir()
540 if (DirName.empty()) in getTopFrameworkDir()
544 auto Dir = FileMgr.getOptionalDirectoryRef(DirName); in getTopFrameworkDir()
1482 StringRef DirName = FileName; in hasModuleMap() local
1485 DirName = llvm::sys::path::parent_path(DirName); in hasModuleMap()
1486 if (DirName.empty()) in hasModuleMap()
1653 StringRef DirName(Dir->getName()); in loadModuleMapFile() local
1655 DirName = llvm::sys::path::parent_path(DirName); in loadModuleMapFile()
[all …]
H A DModuleMap.cpp433 DirName = llvm::sys::path::parent_path(DirName); in findHeaderInUmbrellaDirs()
434 if (DirName.empty()) in findHeaderInUmbrellaDirs()
721 StringRef DirName = Dir->getName(); in isHeaderUnavailableInModule() local
773 DirName = llvm::sys::path::parent_path(DirName); in isHeaderUnavailableInModule()
774 if (DirName.empty()) in isHeaderUnavailableInModule()
2437 std::string DirName = std::string(Tok.getString()); in parseUmbrellaDirDecl() local
2438 std::string DirNameAsWritten = DirName; in parseUmbrellaDirDecl()
2451 if (llvm::sys::path::is_absolute(DirName)) { in parseUmbrellaDirDecl()
2452 if (auto D = SourceMgr.getFileManager().getDirectory(DirName)) in parseUmbrellaDirDecl()
2457 llvm::sys::path::append(PathName, DirName); in parseUmbrellaDirDecl()
[all …]
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DFileManager.h165 llvm::Expected<DirectoryEntryRef> getDirectoryRef(StringRef DirName,
170 getOptionalDirectoryRef(StringRef DirName, bool CacheFailure = true) {
171 return llvm::expectedToOptional(getDirectoryRef(DirName, CacheFailure));
188 getDirectory(StringRef DirName, bool CacheFailure = true);
/llvm-project-15.0.7/clang-tools-extra/modularize/
H A DModularizeUtilities.cpp277 StringRef DirName(Dir->getName()); in loadModuleMap() local
278 if (llvm::sys::path::filename(DirName) == "Modules") { in loadModuleMap()
279 DirName = llvm::sys::path::parent_path(DirName); in loadModuleMap()
280 if (DirName.endswith(".framework")) { in loadModuleMap()
281 if (auto DirEntry = FileMgr->getDirectory(DirName)) in loadModuleMap()
/llvm-project-15.0.7/clang/lib/Sema/
H A DTreeTransform.h8596 DeclarationNameInfo DirName; in TransformOMPExecutableDirective() local
8599 DirName = getDerived().TransformDeclarationNameInfo(DirName); in TransformOMPExecutableDirective()
8625 DeclarationNameInfo DirName; in TransformOMPParallelDirective() local
8636 DeclarationNameInfo DirName; in TransformOMPSimdDirective() local
8647 DeclarationNameInfo DirName; in TransformOMPTileDirective() local
8658 DeclarationNameInfo DirName; in TransformOMPUnrollDirective() local
8669 DeclarationNameInfo DirName; in TransformOMPForDirective() local
8680 DeclarationNameInfo DirName; in TransformOMPForSimdDirective() local
8691 DeclarationNameInfo DirName; in TransformOMPSectionsDirective() local
8702 DeclarationNameInfo DirName; in TransformOMPSectionDirective() local
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-doc/tool/
H A DClangDocMain.cpp133 bool CreateDirectory(const Twine &DirName, bool ClearDirectory = false) { in CreateDirectory() argument
137 std::error_code RemoveStatus = llvm::sys::fs::remove_directories(DirName); in CreateDirectory()
140 << DirName << ".\n"; in CreateDirectory()
144 std::error_code DirectoryStatus = llvm::sys::fs::create_directories(DirName); in CreateDirectory()
/llvm-project-15.0.7/llvm/tools/llvm-libtool-darwin/
H A Dllvm-libtool-darwin.cpp153 StringRef FileName, DirName; in processFileList() local
154 std::tie(FileName, DirName) = StringRef(FileList).rsplit(","); in processFileList()
176 if (!DirName.empty()) in processFileList()
177 sys::path::append(Path, DirName, Line); in processFileList()
/llvm-project-15.0.7/clang/unittests/Basic/
H A DFileManagerTest.cpp149 const char *DirName = "C:."; in TEST_F() local
151 statCache->InjectDirectory(DirName, 44); in TEST_F()
166 EXPECT_EQ(DirName, file->getDir().getName()); in TEST_F()
/llvm-project-15.0.7/compiler-rt/lib/fuzzer/
H A DFuzzerIO.h44 std::string DirName(const std::string &FileName);
H A DFuzzerIOPosix.cpp134 std::string DirName(const std::string &FileName) { in DirName() function
H A DFuzzerIO.cpp176 const std::string &Dir = DirName(Leaf); in MkDirRecursiveInner()
H A DFuzzerIOWindows.cpp345 std::string DirName(const std::string &FileName) { in DirName() function
H A DFuzzerDriver.cpp731 ArtifactPathDir = DirName(ArtifactPathDir); in FuzzerDriver()
737 ValidateDirectoryExists(DirName(Options.ExactArtifactPath), in FuzzerDriver()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DHTMLDiagnostics.cpp547 llvm::SmallString<0> DirName; in FinalizeHTML() local
550 llvm::sys::fs::current_path(DirName); in FinalizeHTML()
551 DirName += '/'; in FinalizeHTML()
577 << html::EscapeText(DirName) in FinalizeHTML()
659 os << "\n<!-- BUGFILE " << DirName << Entry->getName() << " -->\n"; in FinalizeHTML()
/llvm-project-15.0.7/llvm/tools/llvm-objdump/
H A DCOFFDump.cpp157 static const char *DirName[COFF::NUM_DATA_DIRECTORIES + 1] = { in printPEHeader() local
176 for (uint32_t I = 0; I != array_lengthof(DirName); ++I) { in printPEHeader()
183 << format(" %08x %s\n", uint32_t(Size), DirName[I]); in printPEHeader()
/llvm-project-15.0.7/clang-tools-extra/clang-move/
H A DMove.cpp98 StringRef DirName = SM.getFileManager().getCanonicalName(*Dir); in MakeAbsolutePath() local
100 if (llvm::sys::path::is_absolute(DirName)) { in MakeAbsolutePath()
102 llvm::sys::path::append(AbsoluteFilename, DirName, in MakeAbsolutePath()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DPath.cpp1256 StringRef DirName = path::filename(I->path()); in TEST_F() local
1257 EXPECT_TRUE(DirName == "a" || DirName == "b"); in TEST_F()
2366 std::string DirName(MAX_PATH - ShareName.size() - FileName.size() - 1, in TEST_F() local
2369 Input = ShareName + DirName + FileName; in TEST_F()
2377 DirName += DirChar; in TEST_F()
2378 Input = ShareName + DirName + FileName; in TEST_F()
2393 Input = ShareName + DirName + "\\.\\foo\\.\\.." + FileName; in TEST_F()
/llvm-project-15.0.7/clang/lib/Driver/ToolChains/
H A DAMDGPU.cpp278 auto GetROCmVersion = [](StringRef DirName) { in getInstallationPathCandidates() argument
280 std::string VerStr = DirName.drop_front(strlen("rocm-")).str(); in getInstallationPathCandidates()
/llvm-project-15.0.7/clang/include/clang/Lex/
H A DHeaderSearch.h899 LoadModuleMapResult loadModuleMapFile(StringRef DirName, bool IsSystem,
/llvm-project-15.0.7/bolt/lib/Core/
H A DBinaryContext.cpp1491 if (Optional<const char *> DirName = dwarf::toString( in addDebugFilenameToUnit() local
1494 Dir = *DirName; in addDebugFilenameToUnit()
1684 if (Optional<const char *> DirName = dwarf::toString( in preprocessDebugInfo() local
1687 Dir = *DirName; in preprocessDebugInfo()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DSourceCode.cpp541 llvm::StringRef DirName = SourceMgr.getFileManager().getCanonicalName(*Dir); in getCanonicalPath() local
542 llvm::sys::path::append(RealPath, DirName, in getCanonicalPath()
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseOpenMP.cpp591 DeclarationNameInfo DirName; in ParseOpenMPDeclareMapperDirective() local
596 Actions.StartOpenMPDSABlock(OMPD_declare_mapper, DirName, getCurScope(), Loc); in ParseOpenMPDeclareMapperDirective()
2501 DeclarationNameInfo DirName; in ParseOpenMPDeclarativeOrExecutableDirective() local
2836 DirName = in ParseOpenMPDeclarativeOrExecutableDirective()
2855 Actions.StartOpenMPDSABlock(DKind, DirName, Actions.getCurScope(), Loc); in ParseOpenMPDeclarativeOrExecutableDirective()
2953 DKind, DirName, CancelRegion, Clauses, AssociatedStmt.get(), Loc, in ParseOpenMPDeclarativeOrExecutableDirective()

12