reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/Support/Path.h
  287 StringRef parent_path(StringRef path, Style style = Style::native);

References

lib/DebugInfo/GSYM/GsymCreator.cpp
   30   llvm::StringRef directory = llvm::sys::path::parent_path(Path, Style);
lib/DebugInfo/PDB/Native/PDBFile.cpp
   51   return sys::path::parent_path(FilePath);
lib/LTO/LTO.cpp
 1180   StringRef ParentPath = llvm::sys::path::parent_path(NewPath.str());
lib/MC/MCDwarf.cpp
  608       Directory = sys::path::parent_path(FileName);
lib/Object/Archive.cpp
  428   SmallString<128> FullName = sys::path::parent_path(
lib/Object/ArchiveWriter.cpp
  527   const SmallString<128> &DirFrom = sys::path::parent_path(*DirFromOrErr);
lib/Support/CommandLine.cpp
 1086                 ResponseFile, llvm::sys::path::parent_path(FName), FileName);
lib/Support/FileCollector.cpp
   44   std::string Directory = sys::path::parent_path(SrcPath).str();
  129             sys::fs::create_directories(sys::path::parent_path(entry.RPath),
lib/Support/Path.cpp
  646   return !parent_path(p, style).empty();
  929   StringRef Parent = path::parent_path(P);
 1092   SmallString<128> PathStr = path::parent_path(Path);
lib/Support/Signals.cpp
  121     StringRef Parent = llvm::sys::path::parent_path(Argv0);
lib/Support/VirtualFileSystem.cpp
 1463     StringRef Parent = sys::path::parent_path(Trimmed);
 1611     SmallString<256> OverlayAbsDir = sys::path::parent_path(YAMLFilePath);
 1980     startDirectory(path::parent_path(Entry.VPath));
 1993       StringRef Dir = path::parent_path(Entry.VPath);
lib/Testing/Support/SupportHelpers.cpp
   17   SmallString<128> BaseDir = llvm::sys::path::parent_path(Argv0);
   27   SmallString<128> PathInParentDir = llvm::sys::path::parent_path(BaseDir);
tools/bugpoint/ToolRunner.cpp
  211   StringRef Result = sys::path::parent_path(Main);
tools/clang/lib/Basic/FileManager.cpp
   81   StringRef DirName = llvm::sys::path::parent_path(Filename);
   92   StringRef DirName = llvm::sys::path::parent_path(Path);
tools/clang/lib/Driver/Driver.cpp
  102   std::string Dir = llvm::sys::path::parent_path(BinaryPath);
  113     P = llvm::sys::path::parent_path(Dir);
  140   Dir = llvm::sys::path::parent_path(ClangExecutable);
tools/clang/lib/Driver/Job.cpp
  280     SmallString<128> RelModCacheDir = llvm::sys::path::parent_path(
  281         llvm::sys::path::parent_path(CrashInfo->VFSPath));
tools/clang/lib/Driver/Multilib.cpp
   37     seg = path::parent_path(seg);
tools/clang/lib/Driver/ToolChains/Cuda.cpp
  107         StringRef ptxasDir = llvm::sys::path::parent_path(ptxasAbsolutePath);
  109           Candidates.emplace_back(llvm::sys::path::parent_path(ptxasDir),
  538       llvm::sys::path::parent_path(TC.getDriver().Dir);
  697         llvm::sys::path::parent_path(getDriver().Dir);
tools/clang/lib/Driver/ToolChains/Darwin.cpp
  256     StringRef P = llvm::sys::path::parent_path(D.Dir);
tools/clang/lib/Driver/ToolChains/MSVC.cpp
  124         TestPath = llvm::sys::path::parent_path(TestPath);
  128         llvm::StringRef ParentPath = llvm::sys::path::parent_path(TestPath);
  164           ToolChainPath = llvm::sys::path::parent_path(ToolChainPath);
  511         linkPath = llvm::sys::path::parent_path(ClPath);
tools/clang/lib/Driver/ToolChains/MinGW.cpp
  359       llvm::sys::path::parent_path(getDriver().getInstalledDir());
  380     Base = llvm::sys::path::parent_path(TargetSubdir.get());
  382     Base = llvm::sys::path::parent_path(
  383         llvm::sys::path::parent_path(GPPName.get()));
  385     Base = llvm::sys::path::parent_path(getDriver().getInstalledDir());
tools/clang/lib/Format/Format.cpp
 2604        Directory = llvm::sys::path::parent_path(Directory)) {
tools/clang/lib/Frontend/CompilerInstance.cpp
  768       StringRef Parent = llvm::sys::path::parent_path(OutputPath);
 1261   StringRef Dir = llvm::sys::path::parent_path(ModuleFileName);
tools/clang/lib/Frontend/ModuleDependencyCollector.cpp
   87         llvm::sys::path::parent_path(HeaderFilename);
  164   std::string Dir = path::parent_path(SrcPath).str();
  221   if (std::error_code EC = fs::create_directories(path::parent_path(CacheDst),
tools/clang/lib/Frontend/TextDiagnostic.cpp
  767         llvm::sys::path::parent_path(Filename));
tools/clang/lib/Lex/HeaderSearch.cpp
  187     std::string Parent = llvm::sys::path::parent_path(ModuleMapPath);
  459     DirName = llvm::sys::path::parent_path(DirName);
  603       FrameworkPath = llvm::sys::path::parent_path(FrameworkPath);
 1354     DirName = llvm::sys::path::parent_path(DirName);
 1489           llvm::sys::path::parent_path(OriginalModuleMapFile));
 1502       DirName = llvm::sys::path::parent_path(DirName);
 1796   if (!BestPrefixLength && CheckDir(path::parent_path(MainFile)) && IsSystem)
tools/clang/lib/Lex/ModuleMap.cpp
  428     DirName = llvm::sys::path::parent_path(DirName);
  756     DirName = llvm::sys::path::parent_path(DirName);
  946       StringRef Parent = llvm::sys::path::parent_path(FrameworkDirName);
 1060           = llvm::sys::path::parent_path(SubframeworkDirName);
tools/clang/lib/Lex/PPLexerChange.cpp
  218     Path = llvm::sys::path::parent_path(Path);
tools/clang/lib/Parse/Parser.cpp
 2357     if (FE && llvm::sys::path::parent_path(FE->getDir()->getName())
tools/clang/lib/Serialization/ASTReader.cpp
 1397   path::const_iterator fileDirI = path::begin(path::parent_path(filePath)),
 1398                        fileDirE = path::end(path::parent_path(filePath));
 3898                 << llvm::sys::path::parent_path(F.ModuleMapPath);
tools/clang/lib/Serialization/ASTWriter.cpp
 1748     StringRef origDir = llvm::sys::path::parent_path(OutputPath);
tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
   72                                llvm::sys::path::parent_path(prefix), PP, CTU);
tools/clang/lib/Tooling/CompilationDatabase.cpp
   99     Directory = llvm::sys::path::parent_path(Directory);
  109   StringRef Directory = llvm::sys::path::parent_path(AbsolutePath);
  234   ClangToolPath = llvm::sys::path::parent_path(ClangExecutable);
  374       llvm::sys::path::parent_path(Path), std::move(Args));
tools/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
  468         "llvm-objcopy", sys::path::parent_path(BundlerExecutable));
tools/clang/tools/driver/driver.cpp
  301   StringRef InstalledPathParent(llvm::sys::path::parent_path(InstalledPath));
tools/clang/tools/extra/clang-doc/tool/ClangDocMain.cpp
  225     AssetsPath = llvm::sys::path::parent_path(AssetsPath);
tools/clang/tools/extra/clang-include-fixer/YamlSymbolIndex.cpp
   39        Directory = llvm::sys::path::parent_path(Directory)) {
tools/clang/tools/extra/clang-include-fixer/plugin/IncludeFixerPlugin.cpp
   74           StringRef Directory = llvm::sys::path::parent_path(AbsolutePath);
tools/clang/tools/extra/clang-include-fixer/tool/ClangIncludeFixer.cpp
  203         StringRef Directory = llvm::sys::path::parent_path(AbsolutePath);
tools/clang/tools/extra/clang-move/Move.cpp
   96       llvm::sys::path::parent_path(AbsolutePath.str()));
tools/clang/tools/extra/clang-tidy/ClangTidyOptions.cpp
  242   StringRef Path = llvm::sys::path::parent_path(AbsoluteFilePath.str());
  244        CurrentPath = llvm::sys::path::parent_path(CurrentPath)) {
  260         Path = llvm::sys::path::parent_path(Path);
tools/clang/tools/extra/clangd/FileDistance.cpp
   73       Rest = parent_path(Rest, llvm::sys::path::Style::posix);
  124        Rest = parent_path(Rest, llvm::sys::path::Style::posix)) {
tools/clang/tools/extra/clangd/GlobalCompilationDatabase.cpp
   58   for (auto Path = llvm::sys::path::parent_path(FileName);
   60        Path = llvm::sys::path::parent_path(Path))
   71   ClangPath = llvm::sys::path::parent_path(ClangdExecutable);
   86   tooling::CompileCommand Cmd(llvm::sys::path::parent_path(File),
tools/clang/tools/extra/clangd/Headers.cpp
  202     StringRef IncludingDir = llvm::sys::path::parent_path(IncludingFile);
tools/clang/tools/extra/clangd/SourceCode.cpp
  657           llvm::sys::path::parent_path(FilePath))) {
tools/clang/tools/extra/clangd/index/dex/Dex.cpp
  319     Body = llvm::sys::path::parent_path(Body, llvm::sys::path::Style::posix);
tools/clang/tools/extra/clangd/unittests/ClangdTests.cpp
 1046       return {tooling::CompileCommand(llvm::sys::path::parent_path(File),
tools/clang/tools/extra/clangd/unittests/GlobalCompilationDatabaseTests.cpp
  222           llvm::sys::path::parent_path(AbsPath)))
tools/clang/tools/extra/clangd/unittests/TestFS.cpp
   70                                       : llvm::sys::path::parent_path(File),
tools/clang/tools/extra/modularize/ModularizeUtilities.cpp
  279     DirName = llvm::sys::path::parent_path(DirName);
tools/clang/tools/libclang/CIndexer.cpp
  145   ToolchainPath = llvm::sys::path::parent_path(
  146       llvm::sys::path::parent_path(llvm::sys::path::parent_path(ResourcePath)));
  146       llvm::sys::path::parent_path(llvm::sys::path::parent_path(ResourcePath)));
tools/clang/unittests/Lex/PPCallbacksTest.cpp
  147     StringRef SearchPath = llvm::sys::path::parent_path(HeaderPath);
tools/clang/unittests/libclang/TestUtils.h
   57     llvm::sys::fs::create_directories(llvm::sys::path::parent_path(Filename));
tools/dsymutil/DeclContext.h
   36     SmallString<256> ParentPath = sys::path::parent_path(Path);
tools/dsymutil/DwarfLinker.cpp
 2259       StringRef ModuleCacheDir = sys::path::parent_path(Path);
tools/dsymutil/dsymutil.cpp
  446   SDKPath = sys::path::parent_path(SDKPath);
tools/lld/COFF/DebugTypes.cpp
  138   SmallString<128> path = sys::path::parent_path(localPath);
tools/lld/ELF/ScriptParser.cpp
   51     for (; !path.empty(); path = sys::path::parent_path(path)) {
tools/lldb/source/Commands/CommandCompletions.cpp
  146     llvm::StringRef RemainderDir = path::parent_path(Remainder);
  154     SearchDir = path::parent_path(CompletionBuffer);
tools/lldb/source/Host/common/FileSystem.cpp
  334   llvm::StringRef parent = llvm::sys::path::parent_path(path);
tools/lldb/source/Host/common/HostInfoBase.cpp
  230   llvm::StringRef parent_path = llvm::sys::path::parent_path(raw_path);
tools/lldb/source/Interpreter/CommandInterpreter.cpp
 2090     if (llvm::sys::path::parent_path(init_file) ==
 2091         llvm::sys::path::parent_path(home_init_file)) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangHost.cpp
   52   llvm::StringRef parent_dir = llvm::sys::path::parent_path(raw_path);
tools/lldb/source/Utility/FileSpec.cpp
  226   llvm::StringRef directory = llvm::sys::path::parent_path(resolved, m_style);
  433     return FileSpec(llvm::sys::path::parent_path(current_path, m_style),
  473     SetFile(llvm::sys::path::parent_path(current_path, m_style));
tools/lldb/tools/lldb-test/lldb-test.cpp
  347         OS << sys::path::parent_path(breakpoint::CommandFile);
tools/lldb/unittests/TestingSupport/TestUtilities.cpp
   23   llvm::SmallString<128> result = llvm::sys::path::parent_path(TestMainArgv0);
tools/lli/lli.cpp
  250       SmallString<128> dir(sys::path::parent_path(CacheName));
tools/llvm-ar/llvm-ar.cpp
  490       StringRef ParentDir = sys::path::parent_path(ArchiveName);
tools/llvm-config/llvm-config.cpp
  286       sys::path::parent_path(sys::path::parent_path(CurrentPath)).str();
  286       sys::path::parent_path(sys::path::parent_path(CurrentPath)).str();
  294   } else if (sys::fs::equivalent(sys::path::parent_path(CurrentExecPrefix),
tools/llvm-cov/SourceCoverageView.cpp
   43   SmallString<256> ParentPath = sys::path::parent_path(Path);
   62   auto ParentDir = sys::path::parent_path(FullPath);
tools/llvm-cov/gcov.cpp
   29     CoverageFileStem = sys::path::parent_path(SourceFile);
tools/llvm-lto/llvm-lto.cpp
  451   StringRef ParentPath = llvm::sys::path::parent_path(NewPath.str());
tools/llvm-rc/ResourceFileWriter.cpp
 1524   StringRef InputFileDir = sys::path::parent_path(Params.InputFilePath);
tools/sanstats/sanstats.cpp
   59     Filename = std::string(llvm::sys::path::parent_path(ClInputFile)) +
unittests/Passes/PluginsTest.cpp
   35   llvm::SmallString<256> Buf{sys::path::parent_path(Path)};
unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp
   28   llvm::SmallString<256> Buf(path::parent_path(Path));
unittests/Support/Path.cpp
  164     (void)path::parent_path(*i);
  207   EXPECT_EQ("", path::parent_path("/"));
  210   EXPECT_EQ("c:", path::parent_path("c:\\", path::Style::windows));
  213   EXPECT_EQ("", path::parent_path("///"));
  216   EXPECT_EQ("c:", path::parent_path("c:\\\\", path::Style::windows));
  219   EXPECT_EQ("/foo", path::parent_path("/foo/bar"));
  222   EXPECT_EQ("/", path::parent_path("/foo"));
  225   EXPECT_EQ("", path::parent_path("foo"));
  228   EXPECT_EQ("foo", path::parent_path("foo/"));
  231   EXPECT_EQ("", path::parent_path("//net"));
  234   EXPECT_EQ("//net", path::parent_path("//net/"));
  237   EXPECT_EQ("//net/", path::parent_path("//net/foo"));
  244   EXPECT_EQ("", path::parent_path("//"));
  247   EXPECT_EQ("", path::parent_path("\\\\", path::Style::windows));
  250   EXPECT_EQ("", path::parent_path("\\\\\\", path::Style::windows));