/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | ClangdTests.cpp | 235 auto FooCpp = testPath("foo.cpp"); in TEST() local 238 FS.Files[FooCpp] = SourceContents; in TEST() 240 Server.addDocument(FooCpp, SourceContents); in TEST() 242 auto DumpParse1 = dumpASTWithoutMemoryLocs(Server, FooCpp); in TEST() 245 Server.addDocument(FooCpp, ""); in TEST() 247 auto DumpParseEmpty = dumpASTWithoutMemoryLocs(Server, FooCpp); in TEST() 250 Server.addDocument(FooCpp, SourceContents); in TEST() 252 auto DumpParse2 = dumpASTWithoutMemoryLocs(Server, FooCpp); in TEST() 270 auto FooCpp = testPath("foo.cpp"); in TEST() local 274 FS.Files[FooCpp] = SourceContents; in TEST() [all …]
|
D | XRefsTests.cpp | 1204 auto FooCpp = testPath("src/foo.cpp"); in TEST() local 1205 FS.Files[FooCpp] = ""; in TEST() 1212 runAddDocument(Server, FooCpp, SourceAnnotations.code()); in TEST() 1216 runLocateSymbolAt(Server, FooCpp, SourceAnnotations.point("p1")); in TEST() 1222 Locations = runLocateSymbolAt(Server, FooCpp, SourceAnnotations.point("p2")); in TEST() 1230 Locations = runLocateSymbolAt(Server, FooCpp, SourceAnnotations.point("p3")); in TEST() 1243 auto FooCpp = testPath("foo.cpp"); in TEST() local 1253 FS.Files[FooCpp] = std::string(SourceAnnotations.code()); in TEST() 1263 runAddDocument(Server, FooCpp, SourceAnnotations.code()); in TEST() 1266 auto Locations = runLocateSymbolAt(Server, FooCpp, SourceAnnotations.point()); in TEST() [all …]
|
D | SemanticSelectionTests.cpp | 180 auto FooCpp = testPath("Foo.cpp"); in TEST() local 190 FS.Files[FooCpp] = std::string(SourceAnnotations.code()); in TEST() 191 Server.addDocument(FooCpp, SourceAnnotations.code()); in TEST() 193 auto Ranges = runSemanticRanges(Server, FooCpp, SourceAnnotations.points()); in TEST()
|
D | HeaderSourceSwitchTests.cpp | 25 auto FooCpp = testPath("foo.cpp"); in TEST() local 29 FS.Files[FooCpp]; in TEST() 33 getCorrespondingHeaderOrSource(FooCpp, FS.view(llvm::None)); in TEST() 39 ASSERT_EQ(PathResult.getValue(), FooCpp); in TEST()
|
D | SemanticHighlightingTests.cpp | 744 auto FooCpp = testPath("foo.cpp"); in TEST() local 746 FS.Files[FooCpp] = ""; in TEST() 751 Server.addDocument(FooCpp, "int a;"); in TEST()
|
D | FileIndexTests.cpp | 281 auto FooCpp = testPath("foo.cpp"); in TEST() local 286 PI.CompileCommand.Filename = FooCpp; in TEST() 287 PI.CompileCommand.CommandLine = {"clang", "-xc++", FooCpp}; in TEST() 290 FS.Files[FooCpp] = ""; in TEST() 311 buildPreamble(FooCpp, *CI, PI, in TEST() 318 Index.updatePreamble(FooCpp, /*Version=*/"null", Ctx, in TEST()
|
D | TUSchedulerTests.cpp | 830 auto FooCpp = testPath("foo.cpp"); in TEST_F() local 838 S, FooCpp, Contents, WantDiagnostics::No, in TEST_F() 840 S.runWithAST("touchAST", FooCpp, [](Expected<InputsAndAST> IA) { in TEST_F() 851 updateWithDiags(S, FooCpp, Contents, WantDiagnostics::Auto, in TEST_F() 861 S, FooCpp, Contents, WantDiagnostics::Auto, in TEST_F()
|
D | CodeCompleteTests.cpp | 1657 auto FooCpp = testPath("foo.cpp"); in TEST() local 1662 FS.Files[FooCpp] = ""; in TEST() 1674 Server.addDocument(FooCpp, Source.code(), "null", WantDiagnostics::Yes); in TEST() 1686 cantFail(runCodeComplete(Server, FooCpp, Source.point(), Opts)); in TEST() 1747 auto FooCpp = testPath("foo.cpp"); in TEST() local 1751 FS.Files[FooCpp] = "// empty file"; in TEST() 1759 runCodeComplete(Server, FooCpp, Pos, clangd::CodeCompleteOptions()), in TEST()
|