/llvm-project/clang/unittests/Serialization/ |
H A D | PreambleInNamedModulesTest.cpp | 36 void addFile(StringRef Path, StringRef Contents, PathType &AbsPath) { in addFile() argument 39 AbsPath = TestDir; in addFile() 40 sys::path::append(AbsPath, Path); in addFile() 43 sys::fs::create_directories(llvm::sys::path::parent_path(AbsPath))); in addFile() 46 llvm::raw_fd_ostream OS(AbsPath, EC); in addFile()
|
H A D | VarDeclConstantInitTest.cpp | 42 SmallString<256> AbsPath(TestDir); in addFile() local 43 sys::path::append(AbsPath, Path); in addFile() 46 sys::fs::create_directories(llvm::sys::path::parent_path(AbsPath))); in addFile() 49 llvm::raw_fd_ostream OS(AbsPath, EC); in addFile()
|
H A D | NoCommentsTest.cpp | 43 SmallString<256> AbsPath(TestDir); in addFile() local 44 sys::path::append(AbsPath, Path); in addFile() 47 sys::fs::create_directories(llvm::sys::path::parent_path(AbsPath))); in addFile() 50 llvm::raw_fd_ostream OS(AbsPath, EC); in addFile()
|
H A D | ForceCheckFileInputTest.cpp | 44 SmallString<256> AbsPath(TestDir); in addFile() local 45 sys::path::append(AbsPath, Path); in addFile() 48 sys::fs::create_directories(llvm::sys::path::parent_path(AbsPath))); in addFile() 51 llvm::raw_fd_ostream OS(AbsPath, EC); in addFile()
|
H A D | ModuleCacheTest.cpp | 45 SmallString<256> AbsPath(TestDir); in addFile() local 46 sys::path::append(AbsPath, Path); in addFile() 50 sys::fs::create_directories(llvm::sys::path::parent_path(AbsPath))); in addFile() 51 llvm::raw_fd_ostream OS(AbsPath, EC); in addFile()
|
/llvm-project/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 | 196 auto AbsPath = URI::resolve(IGN.URI, MainFile); in update() local 197 if (!AbsPath) { in update() 198 elog("Failed to resolve URI: {0}", AbsPath.takeError()); in update() 201 const auto DigestIt = ShardVersionsSnapshot.find(*AbsPath); in update() 206 FilesToUpdate[IGN.URI] = {std::move(*AbsPath), IGN.Digest}; in update() 296 auto AbsPath = getCanonicalPath(*F, SM.getFileManager()); in index() local 297 if (!AbsPath) in index() 302 auto D = ShardVersionsSnapshot.find(*AbsPath); in index()
|
H A D | SymbolCollector.cpp | 326 llvm::SmallString<256> AbsPath = Path; in splitFrameworkHeaderPath() 327 if (!llvm::sys::path::is_absolute(AbsPath) && !FallbackDir.empty()) in splitFrameworkHeaderPath() 328 llvm::sys::fs::make_absolute(FallbackDir, AbsPath); in splitFrameworkHeaderPath() 329 assert(llvm::sys::path::is_absolute(AbsPath) && in splitFrameworkHeaderPath() 332 llvm::sys::path::remove_dots(AbsPath, /*remove_dot_dot=*/true); 333 R.first->second = URI::create(AbsPath).toString(); 280 llvm::SmallString<256> AbsPath = Path; toURIInternal() local
|
/llvm-project/clang/unittests/Sema/ |
H A D | SemaNoloadLookupTest.cpp | 43 SmallString<256> AbsPath(TestDir); in addFile() local 44 sys::path::append(AbsPath, Path); in addFile() 47 sys::fs::create_directories(llvm::sys::path::parent_path(AbsPath))); in addFile() 50 llvm::raw_fd_ostream OS(AbsPath, EC); in addFile()
|
/llvm-project/clang-tools-extra/clangd/ |
H A D | URI.cpp | 252 llvm::Expected<std::string> URI::resolvePath(llvm::StringRef AbsPath, in resolvePath() argument 254 if (!llvm::sys::path::is_absolute(AbsPath)) in resolvePath() 255 llvm_unreachable(("Not a valid absolute path: " + AbsPath).str().c_str()); in resolvePath() 258 auto U = S->uriFromAbsolutePath(AbsPath); in resolvePath() 269 return std::string(AbsPath); in resolvePath()
|
H A D | ConfigCompile.cpp | 133 llvm::SmallString<256> AbsPath = llvm::StringRef(*Path); in makeAbsolute() 134 llvm::sys::fs::make_absolute(FragmentDirectory, AbsPath); in makeAbsolute() local 135 llvm::sys::path::native(AbsPath, Style); in makeAbsolute() 136 return AbsPath.str().str(); in makeAbsolute() 374 auto AbsPath = makeAbsolute(std::move(*External.File), "File", in compile() 376 if (!AbsPath) in compile() 378 Spec.Location = std::move(*AbsPath); in compile() 391 auto AbsPath = makeAbsolute(std::move(*External.MountPoint), "MountPoint", in compile() 393 if (!AbsPath) in compile() 395 Spec.MountPoint = std::move(*AbsPath); in compile() 375 auto AbsPath = makeAbsolute(std::move(*External.File), "File", compile() local 392 auto AbsPath = makeAbsolute(std::move(*External.MountPoint), "MountPoint", compile() local [all...] |
H A D | TidyProvider.cpp | 100 void apply(tidy::ClangTidyOptions &Result, PathRef AbsPath) { in apply() argument 102 assert(path::is_absolute(AbsPath)); in apply() 109 for (auto Ancestor = absoluteParent(AbsPath); !Ancestor.empty(); in apply()
|
H A D | ConfigProvider.cpp | 56 std::unique_ptr<Provider> Provider::fromYAMLFile(llvm::StringRef AbsPath, in fromYAMLFile() argument 80 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 | 70 /// Resolves \p AbsPath into a canonical path of its URI, by converting 71 /// \p AbsPath to URI and resolving the URI to get th canonical path. 74 static llvm::Expected<std::string> resolvePath(llvm::StringRef AbsPath,
|
H A D | CompileCommands.cpp | 146 auto SiblingOf = [&](llvm::StringRef AbsPath) { in resolveDriver() argument 147 llvm::SmallString<128> Result = llvm::sys::path::parent_path(AbsPath); in resolveDriver()
|
H A D | Protocol.cpp | 46 URIForFile URIForFile::canonicalize(llvm::StringRef AbsPath, in canonicalize() argument 48 assert(llvm::sys::path::is_absolute(AbsPath) && "the path is relative"); in canonicalize() 49 auto Resolved = URI::resolvePath(AbsPath, TUPath); in canonicalize() 53 AbsPath, TUPath, Resolved.takeError()); in canonicalize() 54 return URIForFile(std::string(AbsPath)); in canonicalize()
|
/llvm-project/clang-tools-extra/clangd/indexer/ |
H A D | IndexerMain.cpp | 62 auto AbsPath = getCanonicalPath(*F, SM.getFileManager()); in create() local 63 if (!AbsPath) in create() 66 return Files.insert(*AbsPath).second; // Skip already processed files. in create()
|
/llvm-project/clang/tools/clang-extdef-mapping/ |
H A D | ClangExtDefMapGen.cpp | 166 SmallString<128> AbsPath(AstPath); in HandleAST() local 167 FM.makeAbsolutePath(AbsPath); in HandleAST() 170 MapExtDefNamesConsumer(Unit->getASTContext(), AbsPath); in HandleAST()
|
/llvm-project/clang/tools/clang-format/ |
H A D | ClangFormat.cpp | 608 String AbsPath{FilePath}; in isIgnored() 611 make_absolute(AbsPath); in isIgnored() 612 remove_dots(AbsPath, /*remove_dot_dot=*/true); in isIgnored() 614 if (StringRef Dir{parent_path(AbsPath)}; PrevDir != Dir) { in isIgnored() 647 const auto Pathname{convert_to_slash(AbsPath)}; in isIgnored() 603 String AbsPath{FilePath}; isIgnored() local
|
/llvm-project/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/clang/lib/Basic/ |
H A D | FileManager.cpp | 523 llvm::SmallString<128> AbsPath(FileName); in fillRealPathName() 528 makeAbsolutePath(AbsPath); in fillRealPathName() 529 llvm::sys::path::remove_dots(AbsPath, /*remove_dot_dot=*/true); in fillRealPathName() 530 UFE->RealPathName = std::string(AbsPath); 521 llvm::SmallString<128> AbsPath(FileName); fillRealPathName() local
|
/llvm-project/clang/lib/Tooling/ |
H A D | Tooling.cpp | 540 auto AbsPath = getAbsolutePath(*OverlayFileSystem, SourcePath); in run() 541 if (!AbsPath) { in run() 544 << llvm::toString(AbsPath.takeError()) << "\n"; in run() 547 AbsolutePaths.push_back(std::move(*AbsPath)); in run() 538 auto AbsPath = getAbsolutePath(*OverlayFileSystem, SourcePath); run() local
|
/llvm-project/clang/lib/Frontend/ |
H A D | CompilerInstance.cpp | 854 std::optional<SmallString<128>> AbsPath; in createOutputFileImpl() 859 AbsPath.emplace(OutputPath); in createOutputFileImpl() 860 FileMgr->FixupRelativePath(*AbsPath); in createOutputFileImpl() 861 OutputPath = *AbsPath; in createOutputFileImpl() 856 std::optional<SmallString<128>> AbsPath; createOutputFileImpl() local
|