Home
last modified time | relevance | path

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

12

/llvm-project/clang-tools-extra/clangd/unittests/
H A DDiagnosticsTests.cpp178 auto TU = TestTU::withCode(Test.code()); in TEST()
227 auto TU = TestTU::withCode(Test.code()); in TEST()
236 auto TU = TestTU::withCode(Test.code()); in TEST()
255 auto TU = TestTU::withCode(Test.code()); in TEST()
266 auto TU = TestTU::withCode(Test.code()); in TEST()
320 auto TU = TestTU::withCode(Test.code()); in TEST()
367 auto TU = TestTU::withCode(Test.code()); in TEST()
387 TestTU TU = TestTU::withCode(Main.code()); in TEST()
405 TestTU TU = TestTU::withCode(Main.code()); in TEST()
472 TestTU TU = TestTU::withCode(Mai in TEST()
[all...]
H A DTypeHierarchyTests.cpp71 TestTU TU = TestTU::withCode(Source.code()); in TEST()
86 TestTU TU = TestTU::withCode(Source.code()); in TEST()
108 TestTU TU = TestTU::withCode(Source.code()); in TEST()
131 TestTU TU = TestTU::withCode(Source.code()); in TEST()
157 TestTU TU = TestTU::withCode(Source.code()); in TEST()
191 TestTU TU = TestTU::withCode(Source.code()); in TEST()
216 TestTU TU = TestTU::withCode(Source.code()); in TEST()
263 TestTU TU = TestTU::withCode(Source.code()); in TEST()
290 TestTU TU = TestTU::withCode(Source.code()); in TEST()
319 TestTU TU = TestTU::withCode(Sourc in TEST()
[all...]
H A DSelectionTests.cpp643 auto AST = TestTU::withCode(Annotations(Code).code()).build(); in TEST()
657 auto AST = TestTU::withCode(Annotations(Code).code()).build(); in TEST()
701 auto AST = TestTU::withCode(Test.code()).build(); in TEST()
724 auto TU = TestTU::withCode(Test.code()); in TEST()
742 auto TU = TestTU::withCode(Test.code()); in TEST()
759 auto AST = TestTU::withCode(Test.code()).build(); in TEST()
772 AST = TestTU::withCode(Test.code()).build(); in TEST()
788 AST = TestTU::withCode(Test.code()).build(); in TEST()
800 auto TU = TestTU::withCode(Annotations(Test).code()); in TEST()
821 auto AST = TestTU::withCode(Test.code()).build(); in TEST()
[all …]
H A DASTTests.cpp237 auto TU = TestTU::withCode(File.code()); in TEST()
301 auto TU = TestTU::withCode(Case.Code); in TEST()
324 auto TU = TestTU::withCode(R"cpp( in TEST()
450 TestTU TU = TestTU::withCode(Test.code()); in TEST()
516 TestTU TU = TestTU::withCode(Test.code()); in TEST()
550 TestTU TU = TestTU::withCode(Test.code()); in TEST()
580 ParsedAST AST = TestTU::withCode(Code).build(); in TEST()
600 ParsedAST AST = TestTU::withCode(R"cpp( in TEST()
629 TestTU ObjCTU = TestTU::withCode(R"cpp( in TEST()
636 TestTU HeaderTU = TestTU::withCode(R"cpp( in TEST()
H A 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()
97 TestTU TU = TestTU::withCode(R"(#include "modular.h")"); in TEST()
116 TestTU TU = TestTU::withCode(R"cpp( in TEST()
H A DDumpASTTests.cpp181 ParsedAST AST = TestTU::withCode(Case.first).build(); in TEST()
191 ParsedAST AST = TestTU::withCode(Case.code()).build(); in TEST()
213 ParsedAST AST = TestTU::withCode("int x;").build();
227 ParsedAST AST = TestTU::withCode(Case.code()).build();
H A DXRefsTests.cpp138 auto TU = TestTU::withCode(T.code()); in TEST()
275 auto TU = TestTU::withCode(T.code()); in TEST()
339 auto AST = TestTU::withCode(Main.code()).build(); in TEST()
389 TestTU TU = TestTU::withCode(Code.code()); in TEST()
407 TestTU TU = TestTU::withCode(Code.code()); in TEST()
434 auto AST = TestTU::withCode(Test.code()).build(); in TEST()
1072 TestTU TU = TestTU::withCode(T.code()); in TEST()
1226 auto TU = TestTU::withCode(T.code()); in TEST()
1269 auto TU = TestTU::withCode(T.code()); in TEST()
1333 auto TU = TestTU::withCode( in TEST()
[all...]
H A DInsertionPointTests.cpp46 auto AST = TestTU::withCode(Code.code()).build(); in TEST()
103 auto AST = TestTU::withCode(Code.code()).build(); in TEST()
155 auto AST = TestTU::withCode("struct S{};").build(); in TEST()
163 AST = TestTU::withCode("struct T{private:};").build(); in TEST()
171 AST = TestTU::withCode("struct U{int i;private:};").build(); in TEST()
189 auto TU = TestTU::withCode(Code.code()); in TEST()
H A DHeaderSourceSwitchTests.cpp178 TestTU TU = TestTU::withCode(Case.HeaderCode); in TEST()
192 TestTU TUForIndex = TestTU::withCode(R"cpp( in TEST()
245 TestTU TU = TestTU::withCode(Case.SourceCode); in TEST()
277 TestTU TU = TestTU::withCode("void foo() {}"); in TEST()
H A DPreambleTests.cpp68 auto TU = TestTU::withCode(BaselineContents); in collectPatchedIncludes()
184 auto TU = TestTU::withCode(R"cpp( in TEST()
223 auto TU = TestTU::withCode(Baseline); in TEST()
245 auto BaselinePreamble = TestTU::withCode(Baseline).preamble(); in TEST()
251 auto TU = TestTU::withCode(Modified); in TEST()
272 EXPECT_EQ(Includes, TestTU::withCode(Baseline) in TEST()
573 auto TU = TestTU::withCode(Case.Baseline); in TEST()
605 auto TU = TestTU::withCode(Baseline); in TEST()
H A DRenameTests.cpp869 auto TU = TestTU::withCode(Code.code()); in TEST()
1015 auto TU = TestTU::withCode(Code.code()); in TEST()
1330 TestTU TU = TestTU::withCode(T.code()); in TEST()
1362 TestTU TU = TestTU::withCode(Code.code()); in TEST()
1421 auto TU = TestTU::withCode(Code.code()); in TEST()
1450 auto TU = TestTU::withCode(Code.code()); in TEST()
1474 auto TU = TestTU::withCode(Code.code()); in TEST()
1567 TestTU TU = TestTU::withCode(MainCode.code()); in TEST()
1583 TU = TestTU::withCode(MainCode.code()); in TEST()
1642 auto TU = TestTU::withCode(MainCod in TEST()
[all...]
H A DCallHierarchyTests.cpp84 TestTU TU = TestTU::withCode(Source.code()); in TEST()
132 TestTU TU = TestTU::withCode(Source.code()); in TEST()
179 TestTU TU = TestTU::withCode(Source.code());
214 TestTU TU = TestTU::withCode(Source.code()); in TEST()
254 TestTU TU = TestTU::withCode(Source.code()); in TEST()
563 TestTU TU = TestTU::withCode(Source.code());
591 TestTU TU = TestTU::withCode(Source.code());
612 TestTU TU = TestTU::withCode(Source.code());
635 auto TU = TestTU::withCode(Source.code());
H A DIncludeCleanerTests.cpp75 auto TU = TestTU::withCode(R"cpp( in TEST()
142 auto TU = TestTU::withCode(R"cpp( in TEST()
161 auto TU = TestTU::withCode(R"cpp( in TEST()
510 auto TU = TestTU::withCode(R"cpp( in TEST()
601 auto TU = TestTU::withCode(R"cpp( in TEST()
625 auto TU = TestTU::withCode(R"cpp( in TEST()
651 auto TU = TestTU::withCode(R"cpp(
H A DFeatureModulesTests.cpp48 auto AST = TestTU::withCode("").build(); in TEST()
103 TestTU TU = TestTU::withCode(R"cpp( in TEST()
H A DHoverTests.cpp1403 TestTU TU = TestTU::withCode(T.code()); in TEST()
1461 TestTU TU = TestTU::withCode(T.code()); in TEST()
1550 TestTU TU = TestTU::withCode(T.code()); in TEST()
1600 TestTU TU = TestTU::withCode(T.code()); in TEST()
3110 TestTU TU = TestTU::withCode(T.code()); in TEST()
3304 TestTU TU = TestTU::withCode(T.code()); in TEST()
3337 TestTU TU = TestTU::withCode(T.code()); in TEST()
3354 TestTU TU = TestTU::withCode(T.code()); in TEST()
3365 auto AST = TestTU::withCode(T.code()).build(); in TEST()
3374 auto TU = TestTU::withCode( in TEST()
[all...]
H A DSemanticSelectionTests.cpp158 auto AST = TestTU::withCode(T.code()).build(); in TEST()
261 auto AST = TestTU::withCode(T.code()).build(); in TEST()
H A DSourceCodeTests.cpp363 auto TU = TestTU::withCode(A.code()); in tryWord()
537 TestTU TU = TestTU::withCode(Code.code()); in TEST()
550 TestTU TU = TestTU::withCode(Code.code()); in TEST()
624 ParsedAST AST = TestTU::withCode(Test.code()).build(); in TEST()
659 auto TU = TestTU::withCode(Test.code()); in TEST()
682 auto TU = TestTU::withCode(Test.code()); in TEST()
818 ParsedAST AST = TestTU::withCode(Test.code()).build(); in TEST()
H A DInlayHintTests.cpp96 TestTU TU = TestTU::withCode(Source.code()); in assertHintsWithHeader()
1572 TestTU TU = TestTU::withCode("void foo(void){} extern typeof(foo) foo;"); in TEST()
1587 TestTU TU = TestTU::withCode(Code); in TEST()
1813 auto AST = TestTU::withCode(Code.code()).build(); in TEST()
1841 auto TU = TestTU::withCode(Code.code()); in TEST()
H A DASTSignalsTests.cpp25 TestTU TU = TestTU::withCode(R"cpp( in TEST()
H A DPrintASTTests.cpp34 auto AST = TestTU::withCode(Test.code()).build(); in TEST_P()
H A DTestTU.h36 static TestTU withCode(llvm::StringRef Code) { in withCode() function
H A DCollectMacrosTests.cpp111 auto Inputs = TestTU::withCode(T.code()); in TEST()
H A DCompilerTests.cpp57 TestTU TU = TestTU::withCode("#pragma clang __debug parser_crash"); in TEST()
H A DExpectedTypeTest.cpp32 AST = TestTU::withCode(Code).build(); in build()
H A DCodeCompleteTests.cpp148 auto TU = TestTU::withCode(Test.code());
583 auto TU = TestTU::withCode(Code.code()); in TEST()
965 auto TU = TestTU::withCode(Test.code()); in TEST()
1473 auto TU = TestTU::withCode(Text); in TEST()
3002 auto TU = TestTU::withCode(Test.code()); in TEST()
3034 auto TU = TestTU::withCode(Test.code()); in TEST()
3271 auto TU = TestTU::withCode(Test.code()); in TEST()
3848 auto TU = TestTU::withCode(Test.code()); in TEST()
4139 auto BaselineTU = TestTU::withCode(Baseline); in TEST()
4140 auto ModifiedTU = TestTU::withCode(Tes in TEST()
[all...]

12