/llvm-project/clang-tools-extra/clangd/unittests/ |
H A D | TestFS.cpp | 37 MemFS->setCurrentWorkingDirectory(testRoot()); in buildTestFS() 85 const char *testRoot() { in testRoot() function 99 llvm::sys::path::append(Path, Style, testRoot(), NativeFile); in testPath() 113 if (!HintPath.empty() && !pathStartsWith(testRoot(), HintPath)) in getAbsolutePath() 115 testRoot(), HintPath); in getAbsolutePath() 125 if (!pathConsumeFront(AbsolutePath, testRoot())) in uriFromAbsolutePath() 126 return error("{0} does not start with {1}", AbsolutePath, testRoot()); in uriFromAbsolutePath()
|
H A D | GlobalCompilationDatabaseTests.cpp | 60 testRoot(), File, {"clang", std::string(Arg), std::string(File)}, ""); in cmd() 79 return ProjectInfo{testRoot()}; in getProjectInfo() 216 llvm::formatv(CDBOuter, llvm::sys::path::convert_to_slash(testRoot())); in TEST() 218 llvm::formatv(CDBInner, llvm::sys::path::convert_to_slash(testRoot())); in TEST() 258 Cfg.CompileFlags.CDBSearch.FixedCDBPath = testRoot(); in TEST() 291 Opts.CompileCommandsDir = testRoot(); in TEST() 338 llvm::formatv(CDB, llvm::sys::path::convert_to_slash(testRoot())); in TEST() 415 llvm::SmallString<128> Root(testRoot()); in TEST() 421 llvm::SmallString<128> File(testRoot()); in TEST() 433 EXPECT_EQ(DB.getProjectInfo(File)->SourceRoot, testRoot()); in TEST_F() [all...] |
H A D | TestFS.h | 76 const char *testRoot(); 82 // unittest: is a scheme that refers to files relative to testRoot()
|
H A D | StdLibTests.cpp | 69 OriginalInputs.CompileCommand.Directory = testRoot(); in TEST()
|
H A D | SymbolCollectorTests.cpp | 1379 CollectorOpts.FallbackDir = testRoot(); in TEST_F() 1753 /*ExtraArgs=*/{"-I", testRoot()}); in TEST_F() 1777 /*ExtraArgs=*/{"-I", testRoot()}); in TEST_F() 1793 /*ExtraArgs=*/{"-I", testRoot()}); in TEST_F() 2123 CollectorOpts.FallbackDir = testRoot(); 2151 /*ExtraArgs=*/{"-I", testRoot()});
|
H A D | ConfigCompileTests.cpp | 158 Frag.Source.Directory = testRoot(); in TEST_F() 490 Frag = GetFrag(testRoot(), "foo/"); in TEST_F()
|
H A D | TestTU.cpp | 69 Inputs.CompileCommand.Directory = testRoot(); in inputs()
|
H A D | IndexActionTests.cpp | 96 "-iquote", testRoot()};
|
H A D | FileIndexTests.cpp | 313 PI.CompileCommand.Directory = testRoot(); in TEST() 667 IF.Cmd = tooling::CompileCommand(testRoot(), "b.cc", {"clang"}, "out"); in TEST()
|
H A D | IncludeCleanerTests.cpp | 95 TU.ExtraArgs = {"-isystem", testRoot()}; in TEST()
|
H A D | ParsedASTTests.cpp | 755 Inputs.CompileCommand.Directory = testRoot(); in TEST()
|
H A D | RenameTests.cpp | 1457 TU.ExtraArgs = {"-isystem", testRoot()}; in TEST()
|
H A D | BackgroundIndexTests.cpp | 125 Cmd.Directory = testRoot(); in TEST_F()
|
H A D | XRefsTests.cpp | 49 return Location{URIForFile::canonicalize(File, testRoot()), Range} == arg;
|
H A D | ClangdTests.cpp | 65 Location{URIForFile::canonicalize(File, testRoot()), Range};
|
/llvm-project/clang-tools-extra/include-cleaner/unittests/ |
H A D | IncludeSpellerTest.cpp | 24 const char *testRoot() { in testRoot() function 38 llvm::sys::path::append(Path, llvm::sys::path::Style::native, testRoot(), in testPath() 51 std::string RootWithSeparator{testRoot()}; in operator ()()
|
/llvm-project/clang-tools-extra/clangd/unittests/tweaks/ |
H A D | TweakTests.cpp | 43 MemFS->setCurrentWorkingDirectory(testRoot()); in TEST()
|