Lines Matching defs:TU
138 auto TU = TestTU::withCode(T.code());
139 TU.ExtraArgs.push_back("-xobjective-c++");
140 auto AST = TU.build();
275 auto TU = TestTU::withCode(T.code());
276 TU.ExtraArgs.push_back("-fexceptions"); // FIXME: stop testing on PS4.
277 auto AST = TU.build();
334 TestTU TU;
335 TU.Code = std::string(SymbolCpp.code());
336 TU.HeaderCode = std::string(SymbolHeader.code());
337 auto Index = TU.index();
389 TestTU TU = TestTU::withCode(Code.code());
390 auto AST = TU.build();
391 EXPECT_THAT(locateSymbolAt(AST, Code.point("1"), TU.index().get()),
394 locateSymbolAt(AST, Code.point("2"), TU.index().get()),
407 TestTU TU = TestTU::withCode(Code.code());
408 auto AST = TU.build();
409 EXPECT_THAT(locateSymbolAt(AST, Code.point(), TU.index().get()),
419 TestTU TU;
420 TU.HeaderCode = std::string(SymbolHeader.code());
421 TU.HeaderFilename = "x.proto"; // Prefer locations in codegen files.
422 auto Index = TU.index();
1043 TestTU TU;
1044 TU.Code = std::string(T.code());
1046 TU.ExtraArgs.push_back("-xobjective-c++");
1047 TU.ExtraArgs.push_back("-std=c++23");
1049 auto AST = TU.build();
1072 TestTU TU = TestTU::withCode(T.code());
1073 auto AST = TU.build();
1074 auto Index = TU.index();
1081 hasID(findSymbol(TU.headerSymbols(), "MACRO").ID))));
1149 TestTU TU;
1150 TU.Code = std::string(T.code());
1151 TU.ExtraArgs.push_back("-xobjective-c++");
1153 auto AST = TU.build();
1200 TestTU TU;
1201 TU.Code = std::string(T.code());
1203 auto AST = TU.build();
1226 auto TU = TestTU::withCode(T.code());
1227 auto AST = TU.build();
1228 auto Index = TU.index();
1269 auto TU = TestTU::withCode(T.code());
1271 auto AST = TU.build();
1272 auto Index = TU.index();
1281 testPath(TU.Filename), ASTNodeKind());
1333 auto TU = TestTU::withCode(T.code());
1336 TU.ExtraArgs.push_back("-fno-delayed-template-parsing");
1337 auto AST = TU.build();
1386 TestTU TU;
1387 TU.Code = std::string(Source.code());
1388 TU.HeaderCode = std::string(Header.code());
1389 auto AST = TU.build();
1390 auto Index = TU.index();
1825 auto TU = TestTU::withCode(Code.code());
1826 auto AST = TU.build();
1827 auto Index = TU.index();
1851 auto TU = TestTU::withCode(Code.code());
1852 auto AST = TU.build();
1854 findImplementations(AST, Code.point(), TU.index().get()),
1873 auto TU = TestTU::withHeaderCode(HeaderA.code());
1902 TU.Code = A.code().str();
1903 ParsedAST AST = TU.build();
1917 TU.Code = A.code().str();
1918 ParsedAST AST = TU.build();
1935 auto TU = TestTU::withCode(A.code().str());
1936 ParsedAST AST = TU.build();
1955 auto TU = TestTU::withCode(A.code().str());
1956 ParsedAST AST = TU.build();
1964 auto TU = TestTU::withCode(T.code());
1965 TU.ExtraArgs.push_back("-std=c++20");
1967 auto AST = TU.build();
1991 EXPECT_THAT(findReferences(AST, P, 0, UseIndex ? TU.index().get() : nullptr,
2297 auto TU = TestTU::withCode(Code.code());
2298 TU.AdditionalFiles["foo.inc"] = R"cpp(
2301 auto AST = TU.build();
2385 auto TU = TestTU::withCode(T.code());
2386 TU.ExtraArgs.push_back("-std=c++20");
2387 TU.AdditionalFiles["bar.h"] = guard(R"cpp(
2393 TU.AdditionalFiles["system/vector"] = guard(R"cpp(
2399 TU.AdditionalFiles["udl_header.h"] = guard(R"cpp(
2402 TU.ExtraArgs.push_back("-isystem" + testPath("system"));
2404 auto AST = TU.build();
2419 TestTU TU;
2420 TU.Code = std::string(Main.code());
2421 TU.HeaderCode = Header;
2422 auto AST = TU.build();
2458 TU.Code = ("\n\n" + Main.code()).str();
2459 EXPECT_THAT(findReferences(AST, Main.point(), 0, TU.index().get()).References,
2470 TestTU TU;
2471 TU.Code = std::string(Main.code());
2472 TU.HeaderCode = Header;
2473 auto AST = TU.build();
2619 TestTU TU;
2620 TU.Code = std::string(MainCpp.code());
2621 TU.AdditionalFiles = {{"foo.h", ""}, {"bar.h", ""}};
2622 TU.ExtraArgs = {"-isystem."};
2623 auto AST = TU.build();