Home
last modified time | relevance | path

Searched refs:AbsPath (Results 1 – 22 of 22) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/index/
DBackgroundIndexLoader.cpp72 auto AbsPath = URI::resolve(It.getKey(), StartSourceFile); in loadShard() local
73 if (!AbsPath) { in loadShard()
74 elog("Failed to resolve URI: {0}", AbsPath.takeError()); in loadShard()
78 if (*AbsPath != StartSourceFile) { in loadShard()
79 Edges.push_back(*AbsPath); in loadShard()
DBackground.cpp192 auto AbsPath = URI::resolve(IGN.URI, MainFile); in update() local
193 if (!AbsPath) { in update()
194 elog("Failed to resolve URI: {0}", AbsPath.takeError()); in update()
197 const auto DigestIt = ShardVersionsSnapshot.find(*AbsPath); in update()
202 FilesToUpdate[IGN.URI] = {std::move(*AbsPath), IGN.Digest}; in update()
292 auto AbsPath = getCanonicalPath(F, SM); in index() local
293 if (!AbsPath) in index()
298 auto D = ShardVersionsSnapshot.find(*AbsPath); in index()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DGlobalCompilationDatabaseTests.cpp186 std::string AbsPath = path(RelativePath); in write() local
188 llvm::sys::path::parent_path(AbsPath))) in write()
189 << "Failed to create directories for: " << AbsPath; in write()
192 llvm::raw_fd_ostream OS(AbsPath, EC); in write()
193 EXPECT_FALSE(EC) << "Failed to open " << AbsPath << " for writing"; in write()
202 llvm::SmallString<128> AbsPath(Root); in path() local
203 llvm::sys::path::append(AbsPath, RelativePath); in path()
204 llvm::sys::path::native(AbsPath); in path()
205 return AbsPath.str().str(); in path()
DURITests.cpp166 std::string resolvePathOrDie(llvm::StringRef AbsPath, in resolvePathOrDie() argument
168 auto Path = URI::resolvePath(AbsPath, HintPath); in resolvePathOrDie()
DBackgroundIndexTests.cpp578 for (llvm::StringRef AbsPath : MSS.AccessedPaths.keys()) { in TEST_F() local
579 EXPECT_FALSE(AbsPath.contains("./")) << AbsPath; in TEST_F()
580 EXPECT_FALSE(AbsPath.contains("../")) << AbsPath; in TEST_F()
/external/llvm-project/clang-tools-extra/clangd/
DConfigCompile.cpp128 llvm::SmallString<256> AbsPath = llvm::StringRef(*Path); in makeAbsolute() local
129 llvm::sys::fs::make_absolute(FragmentDirectory, AbsPath); in makeAbsolute()
130 llvm::sys::path::native(AbsPath, Style); in makeAbsolute()
131 return AbsPath.str().str(); in makeAbsolute()
301 auto AbsPath = makeAbsolute(std::move(*External.File), "File", in compile() local
303 if (!AbsPath) in compile()
305 Spec.Location = std::move(*AbsPath); in compile()
314 auto AbsPath = makeAbsolute(std::move(*External.MountPoint), "MountPoint", in compile() local
316 if (!AbsPath) in compile()
318 Spec.MountPoint = std::move(*AbsPath); in compile()
DURI.cpp255 llvm::Expected<std::string> URI::resolvePath(llvm::StringRef AbsPath, in resolvePath() argument
257 if (!llvm::sys::path::is_absolute(AbsPath)) in resolvePath()
258 llvm_unreachable(("Not a valid absolute path: " + AbsPath).str().c_str()); in resolvePath()
261 auto U = S->uriFromAbsolutePath(AbsPath); in resolvePath()
272 return std::string(AbsPath); in resolvePath()
DTidyProvider.cpp77 void apply(tidy::ClangTidyOptions &Result, PathRef AbsPath) { in apply() argument
79 assert(path::is_absolute(AbsPath)); in apply()
83 llvm::StringRef Parent = path::parent_path(AbsPath); in apply()
DConfigProvider.cpp53 std::unique_ptr<Provider> Provider::fromYAMLFile(llvm::StringRef AbsPath, in fromYAMLFile() argument
75 return std::make_unique<AbsFileProvider>(AbsPath, Directory, FS); in fromYAMLFile()
DConfigProvider.h70 static std::unique_ptr<Provider> fromYAMLFile(llvm::StringRef AbsPath,
DURI.h74 static llvm::Expected<std::string> resolvePath(llvm::StringRef AbsPath,
DCompileCommands.cpp134 auto SiblingOf = [&](llvm::StringRef AbsPath) { in resolveDriver() argument
135 llvm::SmallString<128> Result = llvm::sys::path::parent_path(AbsPath); in resolveDriver()
DProtocol.cpp33 URIForFile URIForFile::canonicalize(llvm::StringRef AbsPath, in canonicalize() argument
35 assert(llvm::sys::path::is_absolute(AbsPath) && "the path is relative"); in canonicalize()
36 auto Resolved = URI::resolvePath(AbsPath, TUPath); in canonicalize()
40 AbsPath, TUPath, Resolved.takeError()); in canonicalize()
41 return URIForFile(std::string(AbsPath)); in canonicalize()
DClangdServer.cpp401 [&Snapshot](PathRef AbsPath) -> llvm::Optional<std::string> { in rename() argument
402 auto It = Snapshot.find(AbsPath); in rename()
DProtocol.h88 static URIForFile canonicalize(llvm::StringRef AbsPath,
/external/llvm-project/clang-tools-extra/clangd/indexer/
DIndexerMain.cpp50 auto AbsPath = getCanonicalPath(F, SM); in create() local
51 if (!AbsPath) in create()
54 return Files.insert(*AbsPath).second; // Skip already processed files. in create()
/external/llvm-project/clang/lib/Basic/
DFileManager.cpp476 llvm::SmallString<128> AbsPath(FileName); in fillRealPathName() local
481 makeAbsolutePath(AbsPath); in fillRealPathName()
482 llvm::sys::path::remove_dots(AbsPath, /*remove_dot_dot=*/true); in fillRealPathName()
483 UFE->RealPathName = std::string(AbsPath.str()); in fillRealPathName()
/external/llvm-project/clang-tools-extra/clangd/refactor/
DRename.h27 llvm::function_ref<llvm::Optional<std::string>(PathRef AbsPath)>;
DRename.cpp600 &SM](PathRef AbsPath) -> llvm::Expected<std::string> { in rename() argument
603 (DirtyBuffer = RInputs.GetDirtyBuffer(AbsPath))) in rename()
607 SM.getFileManager().getVirtualFileSystem().getBufferForFile(AbsPath); in rename()
609 return error("Fail to open file {0}: {1}", AbsPath, in rename()
612 return error("Got no buffer for file {0}", AbsPath); in rename()
/external/llvm-project/clang/lib/Tooling/
DTooling.cpp468 auto AbsPath = getAbsolutePath(*OverlayFileSystem, SourcePath); in run() local
469 if (!AbsPath) { in run()
472 << llvm::toString(AbsPath.takeError()) << "\n"; in run()
475 AbsolutePaths.push_back(std::move(*AbsPath)); in run()
/external/llvm-project/llvm/lib/Support/
DCommandLine.cpp1272 SmallString<128> AbsPath; in readConfigFile() local
1274 llvm::sys::fs::current_path(AbsPath); in readConfigFile()
1275 llvm::sys::path::append(AbsPath, CfgFile); in readConfigFile()
1276 CfgFile = AbsPath.str(); in readConfigFile()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DCommandLine.cpp1225 SmallString<128> AbsPath; in readConfigFile() local
1227 llvm::sys::fs::current_path(AbsPath); in readConfigFile()
1228 llvm::sys::path::append(AbsPath, CfgFile); in readConfigFile()
1229 CfgFile = AbsPath.str(); in readConfigFile()