| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | BackgroundIndexLoader.cpp | 69 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 D | Background.cpp | 193 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 D | SymbolCollector.cpp | 264 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 D | ModuleCacheTest.cpp | 44 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 D | URI.cpp | 253 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 D | ConfigCompile.cpp | 134 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 D | TidyProvider.cpp | 98 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 D | ConfigProvider.cpp | 55 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 D | ConfigProvider.h | 68 static std::unique_ptr<Provider> fromYAMLFile(llvm::StringRef AbsPath,
|
| H A D | URI.h | 74 static llvm::Expected<std::string> resolvePath(llvm::StringRef AbsPath,
|
| H A D | CompileCommands.cpp | 145 auto SiblingOf = [&](llvm::StringRef AbsPath) { in resolveDriver() argument 146 llvm::SmallString<128> Result = llvm::sys::path::parent_path(AbsPath); in resolveDriver()
|
| H A D | Protocol.cpp | 45 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 D | Protocol.h | 97 static URIForFile canonicalize(llvm::StringRef AbsPath,
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/indexer/ |
| H A D | IndexerMain.cpp | 52 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 D | ClangExtDefMapGen.cpp | 161 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 D | URITests.cpp | 166 std::string resolvePathOrDie(llvm::StringRef AbsPath, in resolvePathOrDie() argument 168 auto Path = URI::resolvePath(AbsPath, HintPath); in resolvePathOrDie()
|
| H A D | BackgroundIndexTests.cpp | 551 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 D | FileManager.cpp | 553 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 D | Tooling.cpp | 496 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 D | CommandLine.cpp | 1357 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()
|