Lines Matching full:code
74 TU.Code = ModifiedContents.str(); in collectPatchedIncludes()
144 const auto Code = Test.code(); in TEST() local
145 SCOPED_TRACE(Code); in TEST()
148 collectPatchedIncludes(Code, /*BaselineContents=*/"").MainFileIncludes; in TEST()
200 TU.Code = R"cpp( in TEST()
233 TU.Code = Modified.str(); in TEST()
323 EXPECT_THAT(getPreamblePatch("", Modified.code()), in TEST()
326 auto AST = createPatchedAST("", Modified.code()); in TEST()
353 EXPECT_THAT(getPreamblePatch(Baseline, Modified.code()), in TEST()
356 auto AST = createPatchedAST(Baseline, Modified.code()); in TEST()
416 auto AST = createPatchedAST(Case.Baseline, Modified.code()); in TEST()
440 auto AST = createPatchedAST(Baseline, Modified.code()); in TEST()
452 getHover(*AST, offsetToPosition(Modified.code(), Modified.point()), in TEST()
464 auto AST = createPatchedAST(Baseline, Modified.code()); in TEST()
506 auto AST = createPatchedAST("", Modified.code()); in TEST()
518 llvm::cantFail(positionToOffset(Modified.code(), P)))); in TEST()
531 TU.Code = R"cpp(// line 1 in TEST()
578 TU.Code = Modified.code().str(); in TEST()
609 TU.Code = Modified.str(); in TEST()
630 Annotations Code("#define FOO"); in TEST() local
633 auto AST = createPatchedAST(Code.code(), NewCode.code()); in TEST()
639 Annotations Code("#define FOO"); in TEST() local
644 auto AST = createPatchedAST(Code.code(), NewCode.code()); in TEST()
660 Annotations Code(R"( in TEST() local
665 auto AST = createPatchedAST(Code.code(), NewCode.code(), AdditionalFiles); in TEST()
671 Annotations Code(R"( in TEST() local
678 auto AST = createPatchedAST(Code.code(), NewCode.code(), AdditionalFiles); in TEST()
685 Annotations Code("#define [[FOO]] 1\n"); in TEST() local
693 auto AST = createPatchedAST(Code.code(), NewCode.code(), AdditionalFiles); in TEST()
704 Annotations Code("#include [[<foo>]]"); in TEST() local
708 auto AST = createPatchedAST(Code.code(), NewCode.code()); in TEST()
714 Annotations Code(R"( in TEST() local
718 auto AST = createPatchedAST(Code.code(), NewCode.code()); in TEST()
724 Annotations Code("#include [[<foo>]]"); in TEST() local
726 auto AST = createPatchedAST(Code.code(), NewCode.code()); in TEST()
731 Annotations Code("#include [[<foo>]]"); in TEST() local
737 auto AST = createPatchedAST(Code.code(), NewCode.code()); in TEST()
743 Annotations Code("#include [[<foo>]]"); in TEST() local
745 auto AST = createPatchedAST(Code.code(), NewCode.code()); in TEST()
750 Annotations Code(R"( in TEST() local
756 auto AST = createPatchedAST(Code.code(), NewCode.code()); in TEST()
762 Annotations Code(R"( in TEST() local
769 auto AST = createPatchedAST(Code.code(), NewCode.code()); in TEST()
774 Annotations Code(R"( in TEST() local
782 auto AST = createPatchedAST(Code.code(), NewCode.code()); in TEST()
790 Annotations Code(R"( in TEST() local
795 auto AST = createPatchedAST(Code.code(), NewCode.code()); in TEST()
803 Annotations Code(R"( in TEST() local
809 auto AST = createPatchedAST(Code.code(), NewCode.code()); in TEST()
813 Annotations Code(R"( in TEST() local
818 // This code will emit a diagnostic for unterminated #ifndef (as stale in TEST()
822 auto AST = createPatchedAST(Code.code(), NewCode.code()); in TEST()
826 Annotations Code(R"( in TEST() local
831 // This code will emit a diagnostic for unterminated #ifndef (as stale in TEST()
838 auto AST = createPatchedAST(Code.code(), NewCode.code()); in TEST()
851 Annotations Code(R"cpp( in TEST() local
870 auto AST = createPatchedAST(Code.code(), NewCode.code()); in TEST()
880 Annotations Code(R"cpp(#define FOO)cpp"); in TEST() local
885 auto AST = createPatchedAST(Code.code(), Code.code()); in TEST()
891 auto AST = createPatchedAST(Code.code(), NewCode.code()); in TEST()