Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DBackgroundIndexLoader.cpp69 auto AbsPath = URI::resolve(It.getKey(), StartSourceFile); in loadShard() local
70 if (!AbsPath) { in loadShard()
71 elog("Failed to resolve URI: {0}", AbsPath.takeError()); in loadShard()
75 if (*AbsPath != StartSourceFile) { in loadShard()
76 Edges.push_back(*AbsPath); in loadShard()
H A DBackground.cpp193 auto AbsPath = URI::resolve(IGN.URI, MainFile); in update() local
194 if (!AbsPath) { in update()
195 elog("Failed to resolve URI: {0}", AbsPath.takeError()); in update()
198 const auto DigestIt = ShardVersionsSnapshot.find(*AbsPath); in update()
203 FilesToUpdate[IGN.URI] = {std::move(*AbsPath), IGN.Digest}; in update()
293 auto AbsPath = getCanonicalPath(F, SM); in index() local
294 if (!AbsPath) in index()
299 auto D = ShardVersionsSnapshot.find(*AbsPath); in index()
H A DSymbolCollector.cpp264 llvm::SmallString<256> AbsPath = Path; in toURIInternal() local
265 if (!llvm::sys::path::is_absolute(AbsPath) && !FallbackDir.empty()) in toURIInternal()
266 llvm::sys::fs::make_absolute(FallbackDir, AbsPath); in toURIInternal()
267 assert(llvm::sys::path::is_absolute(AbsPath) && in toURIInternal()
270 llvm::sys::path::remove_dots(AbsPath, /*remove_dot_dot=*/true); in toURIInternal()
271 R.first->second = URI::create(AbsPath).toString(); in toURIInternal()
/llvm-project-15.0.7/clang/unittests/Serialization/
H A DModuleCacheTest.cpp44 SmallString<256> AbsPath(TestDir); in addFile() local
45 sys::path::append(AbsPath, Path); in addFile()
49 sys::fs::create_directories(llvm::sys::path::parent_path(AbsPath))); in addFile()
50 llvm::raw_fd_ostream OS(AbsPath, EC); in addFile()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DURI.cpp253 llvm::Expected<std::string> URI::resolvePath(llvm::StringRef AbsPath, in resolvePath() argument
255 if (!llvm::sys::path::is_absolute(AbsPath)) in resolvePath()
256 llvm_unreachable(("Not a valid absolute path: " + AbsPath).str().c_str()); in resolvePath()
259 auto U = S->uriFromAbsolutePath(AbsPath); in resolvePath()
270 return std::string(AbsPath); in resolvePath()
H A DConfigCompile.cpp134 llvm::SmallString<256> AbsPath = llvm::StringRef(*Path); in makeAbsolute() local
135 llvm::sys::fs::make_absolute(FragmentDirectory, AbsPath); in makeAbsolute()
136 llvm::sys::path::native(AbsPath, Style); in makeAbsolute()
137 return AbsPath.str().str(); in makeAbsolute()
374 auto AbsPath = makeAbsolute(std::move(*External.File), "File", in compile() local
376 if (!AbsPath) in compile()
378 Spec.Location = std::move(*AbsPath); in compile()
391 auto AbsPath = makeAbsolute(std::move(*External.MountPoint), "MountPoint", in compile() local
393 if (!AbsPath) in compile()
395 Spec.MountPoint = std::move(*AbsPath); in compile()
H A DTidyProvider.cpp98 void apply(tidy::ClangTidyOptions &Result, PathRef AbsPath) { in apply() argument
100 assert(path::is_absolute(AbsPath)); in apply()
107 for (auto Ancestor = absoluteParent(AbsPath); !Ancestor.empty(); in apply()
H A DConfigProvider.cpp55 std::unique_ptr<Provider> Provider::fromYAMLFile(llvm::StringRef AbsPath, in fromYAMLFile() argument
79 return std::make_unique<AbsFileProvider>(AbsPath, Directory, FS, Trusted); in fromYAMLFile()
H A DConfigProvider.h68 static std::unique_ptr<Provider> fromYAMLFile(llvm::StringRef AbsPath,
H A DURI.h74 static llvm::Expected<std::string> resolvePath(llvm::StringRef AbsPath,
H A DCompileCommands.cpp145 auto SiblingOf = [&](llvm::StringRef AbsPath) { in resolveDriver() argument
146 llvm::SmallString<128> Result = llvm::sys::path::parent_path(AbsPath); in resolveDriver()
H A DProtocol.cpp45 URIForFile URIForFile::canonicalize(llvm::StringRef AbsPath, in canonicalize() argument
47 assert(llvm::sys::path::is_absolute(AbsPath) && "the path is relative"); in canonicalize()
48 auto Resolved = URI::resolvePath(AbsPath, TUPath); in canonicalize()
52 AbsPath, TUPath, Resolved.takeError()); in canonicalize()
53 return URIForFile(std::string(AbsPath)); in canonicalize()
H A DProtocol.h97 static URIForFile canonicalize(llvm::StringRef AbsPath,
/llvm-project-15.0.7/clang-tools-extra/clangd/indexer/
H A DIndexerMain.cpp52 auto AbsPath = getCanonicalPath(F, SM); in create() local
53 if (!AbsPath) in create()
56 return Files.insert(*AbsPath).second; // Skip already processed files. in create()
/llvm-project-15.0.7/clang/tools/clang-extdef-mapping/
H A DClangExtDefMapGen.cpp161 SmallString<128> AbsPath(AstPath); in HandleAST() local
162 FM.makeAbsolutePath(AbsPath); in HandleAST()
165 MapExtDefNamesConsumer(Unit->getASTContext(), AbsPath); in HandleAST()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DURITests.cpp166 std::string resolvePathOrDie(llvm::StringRef AbsPath, in resolvePathOrDie() argument
168 auto Path = URI::resolvePath(AbsPath, HintPath); in resolvePathOrDie()
H A DBackgroundIndexTests.cpp551 for (llvm::StringRef AbsPath : MSS.AccessedPaths.keys()) { in TEST_F() local
552 EXPECT_FALSE(AbsPath.contains("./")) << AbsPath; in TEST_F()
553 EXPECT_FALSE(AbsPath.contains("../")) << AbsPath; in TEST_F()
/llvm-project-15.0.7/clang/lib/Basic/
H A DFileManager.cpp553 llvm::SmallString<128> AbsPath(FileName); in fillRealPathName() local
558 makeAbsolutePath(AbsPath); in fillRealPathName()
559 llvm::sys::path::remove_dots(AbsPath, /*remove_dot_dot=*/true); in fillRealPathName()
560 UFE->RealPathName = std::string(AbsPath.str()); in fillRealPathName()
/llvm-project-15.0.7/clang/lib/Tooling/
H A DTooling.cpp496 auto AbsPath = getAbsolutePath(*OverlayFileSystem, SourcePath); in run() local
497 if (!AbsPath) { in run()
500 << llvm::toString(AbsPath.takeError()) << "\n"; in run()
503 AbsolutePaths.push_back(std::move(*AbsPath)); in run()
/llvm-project-15.0.7/llvm/lib/Support/
H A DCommandLine.cpp1357 SmallString<128> AbsPath; in readConfigFile() local
1359 llvm::sys::fs::current_path(AbsPath); in readConfigFile()
1360 llvm::sys::path::append(AbsPath, CfgFile); in readConfigFile()
1361 CfgFile = AbsPath.str(); in readConfigFile()