Lines Matching refs:code
292 SourceManagerForFile Owner("foo.cpp", Source.code()); in TEST()
301 HasValue(StartOfFile.getLocWithOffset(Source.code().size()))); in TEST()
311 size_t Offset = llvm::cantFail(positionToOffset(Source.code(), P)); in TEST()
362 auto TU = TestTU::withCode(A.code()); in tryWord()
369 llvm::StringRef Want = A.code().slice(A.range().Begin, A.range().End); 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()
624 llvm::errs() << Test.code(); in TEST()
658 auto TU = TestTU::withCode(Test.code()); in TEST()
681 auto TU = TestTU::withCode(Test.code()); in TEST()
750 Test.code(), Case.FullyQualifiedName, in TEST()
753 << Test.code(); in TEST()
754 EXPECT_EQ(Res.EnclosingNamespace, Case.EnclosingNamespace) << Test.code(); in TEST()
775 collectIdentifierRanges("Foo", Code.code(), LangOpts)); in TEST()
830 std::string Code = Annotations(Steps.front().Src).code().str(); in stepByStep()
838 rangeLength(SrcBefore.code(), SrcBefore.range()), in stepByStep()
843 EXPECT_EQ(Code, SrcAfter.code()); in stepByStep()