Home
last modified time | relevance | path

Searched refs:testRoot (Results 1 – 15 of 15) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DTestFS.cpp38 MemFS->setCurrentWorkingDirectory(testRoot()); in buildTestFS()
86 const char *testRoot() { in testRoot() function
100 llvm::sys::path::append(Path, Style, testRoot(), NativeFile); in testPath()
114 if (!HintPath.empty() && !pathStartsWith(testRoot(), HintPath)) in getAbsolutePath()
116 testRoot(), HintPath); in getAbsolutePath()
126 if (!pathConsumeFront(AbsolutePath, testRoot())) in uriFromAbsolutePath()
127 return error("{0} does not start with {1}", AbsolutePath, testRoot()); in uriFromAbsolutePath()
H A DGlobalCompilationDatabaseTests.cpp60 testRoot(), File, {"clang", std::string(Arg), std::string(File)}, ""); in cmd()
79 return ProjectInfo{testRoot()}; in getProjectInfo()
243 Cfg.CompileFlags.CDBSearch.FixedCDBPath = testRoot(); in TEST()
276 Opts.CompileCommandsDir = testRoot(); in TEST()
400 llvm::SmallString<128> Root(testRoot()); in TEST()
406 llvm::SmallString<128> File(testRoot()); in TEST()
418 EXPECT_EQ(DB.getProjectInfo(File)->SourceRoot, testRoot()); in TEST_F()
419 EXPECT_EQ(DB.getProjectInfo(Header)->SourceRoot, testRoot()); in TEST_F()
423 EXPECT_EQ(DB.getProjectInfo(File)->SourceRoot, testRoot()); in TEST_F()
424 EXPECT_EQ(DB.getProjectInfo(Header)->SourceRoot, testRoot()); in TEST_F()
[all …]
H A DTestFS.h76 const char *testRoot();
H A DStdLibTests.cpp69 OriginalInputs.CompileCommand.Directory = testRoot(); in TEST()
H A DConfigCompileTests.cpp159 Frag.Source.Directory = testRoot(); in TEST_F()
467 Frag = GetFrag(testRoot(), "foo/"); in TEST_F()
H A DTestTU.cpp64 Inputs.CompileCommand.Directory = testRoot(); in inputs()
H A DSymbolCollectorTests.cpp1288 CollectorOpts.FallbackDir = testRoot(); in TEST_F()
1614 /*ExtraArgs=*/{"-I", testRoot()}); in TEST_F()
1639 /*ExtraArgs=*/{"-I", testRoot()}); in TEST_F()
1655 /*ExtraArgs=*/{"-I", testRoot()}); in TEST_F()
H A DIndexActionTests.cpp87 "-iquote", testRoot()};
H A DIncludeCleanerTests.cpp339 TU.ExtraArgs = {"-isystem", testRoot()}; in TEST()
H A DFileIndexTests.cpp282 PI.CompileCommand.Directory = testRoot(); in TEST()
635 IF.Cmd = tooling::CompileCommand(testRoot(), "b.cc", {"clang"}, "out"); in TEST()
H A DRenameTests.cpp1205 TU.ExtraArgs = {"-isystem", testRoot()}; in TEST()
H A DBackgroundIndexTests.cpp125 Cmd.Directory = testRoot(); in TEST_F()
H A DClangdTests.cpp64 Location{URIForFile::canonicalize(File, testRoot()), Range};
H A DXRefsTests.cpp47 return Location{URIForFile::canonicalize(File, testRoot()), Range} == arg;
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/tweaks/
H A DTweakTests.cpp43 MemFS->setCurrentWorkingDirectory(testRoot()); in TEST()