Home
last modified time | relevance | path

Searched refs:withCode (Results 1 – 25 of 27) sorted by relevance

12

/external/llvm-project/clang-tools-extra/clangd/unittests/
DDiagnosticsTests.cpp132 auto TU = TestTU::withCode(Test.code()); in TEST()
172 auto TU = TestTU::withCode(Test.code()); in TEST()
191 auto TU = TestTU::withCode(Test.code()); in TEST()
202 auto TU = TestTU::withCode(Test.code()); in TEST()
247 auto TU = TestTU::withCode(Test.code()); in TEST()
291 auto TU = TestTU::withCode(Test.code()); in TEST()
311 TestTU TU = TestTU::withCode(Main.code()); in TEST()
329 TestTU TU = TestTU::withCode(Main.code()); in TEST()
365 TestTU TU = TestTU::withCode(Main.code()); in TEST()
388 TestTU TU = TestTU::withCode(Main.code()); in TEST()
[all …]
DTypeHierarchyTests.cpp69 TestTU TU = TestTU::withCode(Source.code()); in TEST()
91 TestTU TU = TestTU::withCode(Source.code()); in TEST()
112 TestTU TU = TestTU::withCode(Source.code()); in TEST()
139 TestTU TU = TestTU::withCode(Source.code()); in TEST()
173 TestTU TU = TestTU::withCode(Source.code()); in TEST()
198 TestTU TU = TestTU::withCode(Source.code()); in TEST()
246 TestTU TU = TestTU::withCode(Source.code()); in TEST()
273 TestTU TU = TestTU::withCode(Source.code()); in TEST()
302 TestTU TU = TestTU::withCode(Source.code()); in TEST()
326 TestTU TU = TestTU::withCode(Source.code()); in TEST()
[all …]
DSelectionTests.cpp482 auto AST = TestTU::withCode(Annotations(Code).code()).build(); in TEST()
496 auto AST = TestTU::withCode(Annotations(Code).code()).build(); in TEST()
540 auto AST = TestTU::withCode(Test.code()).build(); in TEST()
563 auto TU = TestTU::withCode(Test.code()); in TEST()
581 auto TU = TestTU::withCode(Test.code()); in TEST()
598 auto AST = TestTU::withCode(Test.code()).build(); in TEST()
611 AST = TestTU::withCode(Test.code()).build(); in TEST()
623 auto AST = TestTU::withCode(Annotations(Test).code()).build(); in TEST()
638 auto AST = TestTU::withCode(Test.code()).build(); in TEST()
DModulesTests.cpp23 TestTU TU = TestTU::withCode(R"cpp( in TEST()
45 TestTU TU = TestTU::withCode(R"cpp( in TEST()
70 TestTU TU = TestTU::withCode(R"cpp( in TEST()
DDumpASTTests.cpp142 ParsedAST AST = TestTU::withCode(Case.first).build(); in TEST()
152 ParsedAST AST = TestTU::withCode(Case.code()).build(); in TEST()
161 ParsedAST AST = TestTU::withCode("int x;").build(); in TEST()
DPreambleTests.cpp54 auto TU = TestTU::withCode(BaselineContents); in collectPatchedIncludes()
170 auto TU = TestTU::withCode(R"cpp( in TEST()
197 auto BaselinePreamble = TestTU::withCode(Baseline).preamble(); in TEST()
205 auto TU = TestTU::withCode(Modified); in TEST()
217 auto BaselinePreamble = TestTU::withCode(Baseline).preamble(); in TEST()
223 auto TU = TestTU::withCode(Modified); in TEST()
515 auto TU = TestTU::withCode(Case.Baseline); in TEST()
DXRefsTests.cpp120 auto AST = TestTU::withCode(T.code()).build(); in TEST()
255 auto TU = TestTU::withCode(T.code()); in TEST()
314 auto AST = TestTU::withCode(Main.code()).build(); in TEST()
372 auto AST = TestTU::withCode(Test.code()).build(); in TEST()
916 auto TU = TestTU::withCode(T.code()); in TEST()
957 auto TU = TestTU::withCode(T.code()); in TEST()
1021 auto TU = TestTU::withCode(T.code()); in TEST()
1168 auto AST = TestTU::withCode(T.code()).build(); in TEST()
1366 auto AST = TestTU::withCode(T.code()).build(); in TEST()
1448 auto AST = TestTU::withCode(T.code()).build(); in TEST()
[all …]
DASTTests.cpp39 auto AST = TestTU::withCode(File.code()).build(); in TEST()
120 TestTU TU = TestTU::withCode(Test.code()); in TEST()
186 TestTU TU = TestTU::withCode(Test.code()); in TEST()
DRenameTests.cpp831 auto TU = TestTU::withCode(Code.code()); in TEST()
855 TestTU OtherFile = TestTU::withCode("Outside s; auto ss = &foo;"); in TEST()
1032 TestTU TU = TestTU::withCode(T.code()); in TEST()
1075 auto TU = TestTU::withCode(Code.code()); in TEST()
1094 auto TU = TestTU::withCode(Code.code()); in TEST()
1182 TestTU TU = TestTU::withCode(MainCode.code()); in TEST()
1202 TU = TestTU::withCode(MainCode.code()); in TEST()
1259 auto TU = TestTU::withCode(MainCode.code()); in TEST()
1512 auto TU = TestTU::withCode(Code.code()); in TEST()
DHeaderSourceSwitchTests.cpp176 TestTU TU = TestTU::withCode(Case.HeaderCode); in TEST()
190 TestTU TUForIndex = TestTU::withCode(R"cpp( in TEST()
243 TestTU TU = TestTU::withCode(Case.SourceCode); in TEST()
DCallHierarchyTests.cpp67 TestTU TU = TestTU::withCode(Source.code()); in TEST()
111 TestTU TU = TestTU::withCode(Source.code()); in TEST()
144 TestTU TU = TestTU::withCode(Source.code()); in TEST()
DSemanticSelectionTests.cpp162 auto AST = TestTU::withCode(T.code()).build(); in TEST()
265 auto AST = TestTU::withCode(T.code()).build(); in TEST()
DSourceCodeTests.cpp352 auto TU = TestTU::withCode(A.code()); in tryWord()
526 TestTU TU = TestTU::withCode(Code.code()); in TEST()
539 TestTU TU = TestTU::withCode(Code.code()); in TEST()
613 ParsedAST AST = TestTU::withCode(Test.code()).build(); in TEST()
648 auto TU = TestTU::withCode(Test.code()); in TEST()
671 auto TU = TestTU::withCode(Test.code()); in TEST()
DCompilerTests.cpp55 TestTU TU = TestTU::withCode("#pragma clang __debug parser_crash"); in TEST()
DCollectMacrosTests.cpp79 auto AST = TestTU::withCode(T.code()).build(); in TEST()
DPrintASTTests.cpp35 auto AST = TestTU::withCode(Test.code()).build(); in TEST_P()
DTestTU.h36 static TestTU withCode(llvm::StringRef Code) { in withCode() function
DSymbolInfoTests.cpp332 auto AST = TestTU::withCode(TestInput.code()).build(); in TEST()
DExpectedTypeTest.cpp32 AST = TestTU::withCode(Code).build(); in build()
DHoverTests.cpp844 TestTU TU = TestTU::withCode(T.code()); in TEST()
944 TestTU TU = TestTU::withCode(T.code()); in TEST()
1005 TestTU TU = TestTU::withCode(T.code()); in TEST()
2036 TestTU TU = TestTU::withCode(T.code()); in TEST()
2077 TestTU TU = TestTU::withCode(T.code()); in TEST()
2110 TestTU TU = TestTU::withCode(T.code()); in TEST()
2133 TestTU TU = TestTU::withCode(T.code()); in TEST()
DCodeCompletionStringsTests.cpp62 auto TU = TestTU::withCode("/*x\xffy*/ struct X;"); in TEST_F()
DCodeCompleteTests.cpp132 auto TU = TestTU::withCode(Test.code());
790 auto TU = TestTU::withCode(Test.code()); in TEST()
1124 auto TU = TestTU::withCode(Text);
2385 auto TU = TestTU::withCode(Test.code()); in TEST()
2417 auto TU = TestTU::withCode(Test.code()); in TEST()
2533 auto TU = TestTU::withCode(Test.code()); in TEST()
2862 auto TU = TestTU::withCode(Test.code()); in TEST()
DParsedASTTests.cpp208 auto TU = TestTU::withCode(R"cpp( in TEST()
329 auto TU = TestTU::withCode(TestCase.code()); in TEST()
DFileIndexTests.cpp478 TestTU Header = TestTU::withCode(CommonHeader); in TEST()
479 TestTU Cpp = TestTU::withCode("void foo() {}"); in TEST()
563 auto TU = TestTU::withCode(llvm::formatv("int xxx{0};", I).str()); in TEST()
DHeadersTests.cpp186 auto TU = TestTU::withCode(R"cpp( in TEST_F()

12