Home
last modified time | relevance | path

Searched refs:AbsolutePath (Results 1 – 25 of 43) sorted by relevance

12

/external/llvm-project/clang-tools-extra/clangd/
DURI.cpp61 uriFromAbsolutePath(llvm::StringRef AbsolutePath) const override { in uriFromAbsolutePath()
64 llvm::StringRef Root = llvm::sys::path::root_name(AbsolutePath); in uriFromAbsolutePath()
68 AbsolutePath.consume_front(Root); in uriFromAbsolutePath()
73 Body += llvm::sys::path::convert_to_slash(AbsolutePath); in uriFromAbsolutePath()
211 llvm::Expected<URI> URI::create(llvm::StringRef AbsolutePath, in create() argument
213 if (!llvm::sys::path::is_absolute(AbsolutePath)) in create()
214 return error("Not a valid absolute path: {0}", AbsolutePath); in create()
218 return S->get()->uriFromAbsolutePath(AbsolutePath); in create()
221 URI URI::create(llvm::StringRef AbsolutePath) { in create() argument
222 if (!llvm::sys::path::is_absolute(AbsolutePath)) in create()
[all …]
DURI.h44 static llvm::Expected<URI> create(llvm::StringRef AbsolutePath,
49 static URI create(llvm::StringRef AbsolutePath);
52 static URI createFile(llvm::StringRef AbsolutePath);
120 uriFromAbsolutePath(llvm::StringRef AbsolutePath) const = 0;
/external/perfetto/src/traced/probes/common/
Dcpu_freq_info_for_testing.cc65 PERFETTO_CHECK(remove(AbsolutePath(path).c_str()) == 0); in ~CpuFreqInfoForTesting()
68 base::Rmdir(AbsolutePath(path)); in ~CpuFreqInfoForTesting()
77 base::Mkdir(AbsolutePath(path).c_str()); in AddDir()
83 base::OpenFile(AbsolutePath(path), O_WRONLY | O_CREAT | O_TRUNC, 0600)); in AddFile()
88 std::string CpuFreqInfoForTesting::AbsolutePath(std::string path) { in AbsolutePath() function in perfetto::CpuFreqInfoForTesting
Dcpu_freq_info_for_testing.h47 std::string AbsolutePath(std::string path);
/external/llvm-project/clang-tools-extra/clangd/index/
DBackground.cpp70 llvm::SmallString<128> AbsolutePath; in getAbsolutePath() local
72 AbsolutePath = Cmd.Filename; in getAbsolutePath()
74 AbsolutePath = Cmd.Directory; in getAbsolutePath()
75 llvm::sys::path::append(AbsolutePath, Cmd.Filename); in getAbsolutePath()
76 llvm::sys::path::remove_dots(AbsolutePath, true); in getAbsolutePath()
78 return AbsolutePath; in getAbsolutePath()
82 auto Buf = FS->getBufferForFile(LS.AbsolutePath); in shardIsStale()
85 LS.AbsolutePath, Buf.getError().message()); in shardIsStale()
254 auto AbsolutePath = getAbsolutePath(Cmd); in index() local
257 auto Buf = FS->getBufferForFile(AbsolutePath); in index()
[all …]
DIndexAction.cpp35 auto AbsolutePath = File->tryGetRealPathName(); in toURI() local
36 if (AbsolutePath.empty()) in toURI()
38 return URI::create(AbsolutePath).toString(); in toURI()
DBackgroundIndexLoader.cpp61 LS.AbsolutePath = StartSourceFile.str(); in loadShard()
63 BackgroundIndexStorage *Storage = IndexStorageFactory(LS.AbsolutePath); in loadShard()
DBackgroundIndexLoader.h30 Path AbsolutePath; member
DSymbolCollector.cpp62 llvm::SmallString<128> AbsolutePath(Path); in toURI() local
65 AbsolutePath = *CanonPath; in toURI()
70 if (!llvm::sys::path::is_absolute(AbsolutePath) && !Opts.FallbackDir.empty()) in toURI()
71 llvm::sys::fs::make_absolute(Opts.FallbackDir, AbsolutePath); in toURI()
72 llvm::sys::path::remove_dots(AbsolutePath, /*remove_dot_dot=*/true); in toURI()
73 return URI::create(AbsolutePath).toString(); in toURI()
/external/vixl/
D.ycm_extra_conf.py12 def AbsolutePath(path): function
16 '-I', AbsolutePath('src'),
17 '-I', AbsolutePath('test'),
/external/llvm-project/clang-tools-extra/clangd/unittests/
DTestFS.cpp112 uriFromAbsolutePath(llvm::StringRef AbsolutePath) const override { in uriFromAbsolutePath()
113 llvm::StringRef Body = AbsolutePath; in uriFromAbsolutePath()
115 return error("{0} does not start with {1}", AbsolutePath, testRoot()); in uriFromAbsolutePath()
DURITests.cpp30 std::string createOrDie(llvm::StringRef AbsolutePath, in createOrDie() argument
32 auto Uri = URI::create(AbsolutePath, Scheme); in createOrDie()
/external/clang/lib/Tooling/
DCompilationDatabase.cpp83 SmallString<1024> AbsolutePath(getAbsolutePath(SourceFile)); in autoDetectFromSource() local
84 StringRef Directory = llvm::sys::path::parent_path(AbsolutePath); in autoDetectFromSource()
98 SmallString<1024> AbsolutePath(getAbsolutePath(SourceDir)); in autoDetectFromDirectory() local
101 findCompilationDatabaseFromDirectory(AbsolutePath, ErrorMessage); in autoDetectFromDirectory()
DJSONCompilationDatabase.cpp329 SmallString<128> AbsolutePath( in parse() local
331 llvm::sys::path::append(AbsolutePath, FileName); in parse()
332 llvm::sys::path::native(AbsolutePath, NativeFilePath); in parse()
DTooling.cpp165 SmallString<1024> AbsolutePath = RelativePath; in getAbsolutePath() local
166 std::error_code EC = llvm::sys::fs::make_absolute(AbsolutePath); in getAbsolutePath()
169 llvm::sys::path::native(AbsolutePath); in getAbsolutePath()
170 return AbsolutePath.str(); in getAbsolutePath()
/external/llvm-project/clang-tools-extra/clang-include-fixer/plugin/
DIncludeFixerPlugin.cpp74 SmallString<128> AbsolutePath(tooling::getAbsolutePath(InputFile)); in ParseArgs() local
75 StringRef Directory = llvm::sys::path::parent_path(AbsolutePath); in ParseArgs()
/external/llvm-project/clang/lib/Tooling/
DCompilationDatabase.cpp106 SmallString<1024> AbsolutePath(getAbsolutePath(SourceFile)); in autoDetectFromSource() local
107 StringRef Directory = llvm::sys::path::parent_path(AbsolutePath); in autoDetectFromSource()
121 SmallString<1024> AbsolutePath(getAbsolutePath(SourceDir)); in autoDetectFromDirectory() local
124 findCompilationDatabaseFromDirectory(AbsolutePath, ErrorMessage); in autoDetectFromDirectory()
DJSONCompilationDatabase.cpp425 SmallString<128> AbsolutePath( in parse() local
427 llvm::sys::path::append(AbsolutePath, FileName); in parse()
428 llvm::sys::path::remove_dots(AbsolutePath, /*remove_dot_dot=*/ true); in parse()
429 llvm::sys::path::native(AbsolutePath, NativeFilePath); in parse()
DTooling.cpp235 SmallString<1024> AbsolutePath = RelativePath; in getAbsolutePath() local
236 if (auto EC = FS.makeAbsolute(AbsolutePath)) in getAbsolutePath()
238 llvm::sys::path::native(AbsolutePath); in getAbsolutePath()
239 return std::string(AbsolutePath.str()); in getAbsolutePath()
/external/llvm/lib/DebugInfo/DWARF/
DDWARFUnit.cpp298 SmallString<16> AbsolutePath; in parseDWO() local
300 sys::path::append(AbsolutePath, CompilationDir); in parseDWO()
302 sys::path::append(AbsolutePath, DWOFileName); in parseDWO()
303 DWO = llvm::make_unique<DWOHolder>(AbsolutePath); in parseDWO()
/external/llvm-project/clang-tools-extra/clang-move/
DMove.cpp77 llvm::SmallString<128> AbsolutePath(Path); in MakeAbsolutePath() local
78 llvm::sys::fs::make_absolute(InitialDirectory, AbsolutePath); in MakeAbsolutePath()
79 return CleanPath(std::move(AbsolutePath)); in MakeAbsolutePath()
88 llvm::SmallString<128> AbsolutePath(Path); in MakeAbsolutePath() local
90 SM.getFileManager().getVirtualFileSystem().makeAbsolute(AbsolutePath)) in MakeAbsolutePath()
96 llvm::sys::path::parent_path(AbsolutePath.str())); in MakeAbsolutePath()
103 llvm::sys::path::filename(AbsolutePath.str())); in MakeAbsolutePath()
107 return CleanPath(AbsolutePath); in MakeAbsolutePath()
/external/llvm-project/clang-tools-extra/clangd/unittests/tweaks/
DTweakTests.cpp43 TEST(FileEdits, AbsolutePath) { in TEST() argument
/external/llvm-project/clang-tools-extra/clang-tidy/tool/
DClangTidyMain.cpp405 SmallString<256> AbsolutePath(Input); in clangTidyMain() local
406 if (std::error_code EC = llvm::sys::fs::make_absolute(AbsolutePath)) { in clangTidyMain()
410 return AbsolutePath; in clangTidyMain()
/external/openscreen/tools/
Dlicenses.py88 def AbsolutePath(path, filename, root): function
147 license_path = AbsolutePath(path, filename, root)
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/DWARF/
DDWARFUnit.cpp571 SmallString<16> AbsolutePath; in parseDWO() local
574 sys::path::append(AbsolutePath, *CompilationDir); in parseDWO()
576 sys::path::append(AbsolutePath, *DWOFileName); in parseDWO()
580 auto DWOContext = Context.getDWOContext(AbsolutePath); in parseDWO()

12