Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DDiagnosticsTests.cpp160 auto TU = TestTU::withCode(Test.code()); in TEST()
209 auto TU = TestTU::withCode(Test.code()); in TEST()
218 auto TU = TestTU::withCode(Test.code()); in TEST()
237 auto TU = TestTU::withCode(Test.code()); in TEST()
248 auto TU = TestTU::withCode(Test.code()); in TEST()
816 auto TU = TestTU::withCode(R"cpp( in TEST()
826 auto TU = TestTU::withCode(R"cpp( in TEST()
838 auto TU = TestTU::withCode(R"cpp( in TEST()
851 auto TU = TestTU::withCode(R"cpp( in TEST()
866 auto TU = TestTU::withCode(R"cpp( in TEST()
[all …]
H A DTypeHierarchyTests.cpp70 TestTU TU = TestTU::withCode(Source.code()); in TEST()
94 TestTU TU = TestTU::withCode(Source.code()); in TEST()
117 TestTU TU = TestTU::withCode(Source.code()); in TEST()
143 TestTU TU = TestTU::withCode(Source.code()); in TEST()
177 TestTU TU = TestTU::withCode(Source.code()); in TEST()
202 TestTU TU = TestTU::withCode(Source.code()); in TEST()
250 TestTU TU = TestTU::withCode(Source.code()); in TEST()
277 TestTU TU = TestTU::withCode(Source.code()); in TEST()
306 TestTU TU = TestTU::withCode(Source.code()); in TEST()
330 TestTU TU = TestTU::withCode(Source.code()); in TEST()
[all …]
H A DModulesTests.cpp22 TestTU TU = TestTU::withCode(R"cpp( in TEST()
44 TestTU TU = TestTU::withCode(R"cpp( in TEST()
69 TestTU TU = TestTU::withCode(R"cpp( in TEST()
96 TestTU TU = TestTU::withCode(R"(#include "modular.h")"); in TEST()
H A DSelectionTests.cpp574 auto AST = TestTU::withCode(Annotations(Code).code()).build(); in TEST()
588 auto AST = TestTU::withCode(Annotations(Code).code()).build(); in TEST()
632 auto AST = TestTU::withCode(Test.code()).build(); in TEST()
655 auto TU = TestTU::withCode(Test.code()); in TEST()
673 auto TU = TestTU::withCode(Test.code()); in TEST()
690 auto AST = TestTU::withCode(Test.code()).build(); in TEST()
703 AST = TestTU::withCode(Test.code()).build(); in TEST()
715 auto AST = TestTU::withCode(Annotations(Test).code()).build(); in TEST()
730 auto AST = TestTU::withCode(Test.code()).build(); in TEST()
786 auto AST = TestTU::withCode(Test.code()).build(); in TEST()
H A DASTTests.cpp236 auto TU = TestTU::withCode(File.code()); in TEST()
300 auto TU = TestTU::withCode(Case.Code); in TEST()
323 auto TU = TestTU::withCode(R"cpp( in TEST()
449 TestTU TU = TestTU::withCode(Test.code()); in TEST()
515 TestTU TU = TestTU::withCode(Test.code()); in TEST()
549 TestTU TU = TestTU::withCode(Test.code()); in TEST()
579 ParsedAST AST = TestTU::withCode(Code).build(); in TEST()
599 ParsedAST AST = TestTU::withCode(R"cpp( in TEST()
H A DPreambleTests.cpp51 auto TU = TestTU::withCode(BaselineContents); in collectPatchedIncludes()
167 auto TU = TestTU::withCode(R"cpp( in TEST()
194 auto BaselinePreamble = TestTU::withCode(Baseline).preamble(); in TEST()
202 auto TU = TestTU::withCode(Modified); in TEST()
214 auto BaselinePreamble = TestTU::withCode(Baseline).preamble(); in TEST()
220 auto TU = TestTU::withCode(Modified); in TEST()
516 auto TU = TestTU::withCode(Case.Baseline); in TEST()
541 EXPECT_THAT(*TestTU::withCode(Code).build().getDiagnostics(), in TEST()
557 auto TU = TestTU::withCode(Baseline); in TEST()
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 DXRefsTests.cpp129 auto TU = TestTU::withCode(T.code()); in TEST()
266 auto TU = TestTU::withCode(T.code()); in TEST()
377 TestTU TU = TestTU::withCode(Code.code()); in TEST()
395 TestTU TU = TestTU::withCode(Code.code()); in TEST()
1040 TestTU TU = TestTU::withCode(T.code()); in TEST()
1194 auto TU = TestTU::withCode(T.code()); in TEST()
1237 auto TU = TestTU::withCode(T.code()); in TEST()
1301 auto TU = TestTU::withCode(T.code()); in TEST()
1792 auto TU = TestTU::withCode(Code.code()); in TEST()
1818 auto TU = TestTU::withCode(Code.code()); in TEST()
[all …]
H A DDumpASTTests.cpp147 ParsedAST AST = TestTU::withCode(Case.first).build(); in TEST()
157 ParsedAST AST = TestTU::withCode(Case.code()).build(); in TEST()
179 ParsedAST AST = TestTU::withCode("int x;").build(); 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 DRenameTests.cpp825 auto TU = TestTU::withCode(Code.code()); in TEST()
1076 TestTU TU = TestTU::withCode(T.code()); in TEST()
1110 TestTU TU = TestTU::withCode(Code.code()); in TEST()
1169 auto TU = TestTU::withCode(Code.code()); in TEST()
1198 auto TU = TestTU::withCode(Code.code()); in TEST()
1222 auto TU = TestTU::withCode(Code.code()); in TEST()
1315 TestTU TU = TestTU::withCode(MainCode.code()); in TEST()
1331 TU = TestTU::withCode(MainCode.code()); in TEST()
1384 auto TU = TestTU::withCode(MainCode.code()); in TEST()
1639 auto TU = TestTU::withCode(Code.code()); in TEST()
H A DCallHierarchyTests.cpp74 TestTU TU = TestTU::withCode(Source.code()); in TEST()
119 TestTU TU = TestTU::withCode(Source.code()); in TEST()
162 TestTU TU = TestTU::withCode(Source.code()); in TEST()
195 TestTU TU = TestTU::withCode(Source.code()); in TEST()
432 TestTU TU = TestTU::withCode(Source.code()); in TEST()
H A DFeatureModulesTests.cpp48 auto AST = TestTU::withCode("").build(); in TEST()
103 TestTU TU = TestTU::withCode(R"cpp( in TEST()
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 DHoverTests.cpp1051 TestTU TU = TestTU::withCode(T.code()); in TEST()
1108 TestTU TU = TestTU::withCode(T.code()); in TEST()
2646 TestTU TU = TestTU::withCode(T.code()); in TEST()
2679 TestTU TU = TestTU::withCode(T.code()); in TEST()
2696 TestTU TU = TestTU::withCode(T.code()); in TEST()
2716 TestTU TU = TestTU::withCode(T.code()); in TEST()
3155 TestTU TU = TestTU::withCode(T.code()); in TEST()
3169 TestTU TU = TestTU::withCode(T.code()); in TEST()
3186 TestTU TU = TestTU::withCode(T.code()); in TEST()
3202 TestTU TU = TestTU::withCode(T.code()); in TEST()
[all …]
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 DSourceCodeTests.cpp362 auto TU = TestTU::withCode(A.code()); in tryWord()
536 TestTU TU = TestTU::withCode(Code.code()); in TEST()
549 TestTU TU = TestTU::withCode(Code.code()); in TEST()
623 ParsedAST AST = TestTU::withCode(Test.code()).build(); in TEST()
658 auto TU = TestTU::withCode(Test.code()); in TEST()
681 auto TU = TestTU::withCode(Test.code()); in TEST()
H A DCollectMacrosTests.cpp78 auto AST = TestTU::withCode(T.code()).build(); in TEST()
H A DTestTU.h36 static TestTU withCode(llvm::StringRef Code) { in withCode() function
H A DSymbolInfoTests.cpp324 auto AST = TestTU::withCode(TestInput.code()).build(); in TEST()
H A DInlayHintTests.cpp87 TestTU TU = TestTU::withCode(Source.code()); in assertHints()
1357 TestTU TU = TestTU::withCode("void foo(void){} extern typeof(foo) foo;"); in TEST()
1447 auto AST = TestTU::withCode(Code.code()).build(); 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 DCodeCompletionStringsTests.cpp62 auto TU = TestTU::withCode("/*x\xffy*/ struct X;"); in TEST_F()

12