Home
last modified time | relevance | path

Searched refs:AnnotatedCode (Results 1 – 7 of 7) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/unittests/
DFindTargetTests.cpp912 std::string AnnotatedCode; member
954 std::string AnnotatedCode; in annotateReferencesInFoo() local
971 AnnotatedCode += Code.substr(NextCodeChar, Offset - NextCodeChar); in annotateReferencesInFoo()
972 AnnotatedCode += "$" + std::to_string(I) + "^"; in annotateReferencesInFoo()
977 AnnotatedCode += Code.substr(NextCodeChar); in annotateReferencesInFoo()
983 return AllRefs{std::move(AnnotatedCode), std::move(DumpedReferences)}; in annotateReferencesInFoo()
1635 EXPECT_EQ(ExpectedCode, Actual.AnnotatedCode); in TEST_F()
DPrintASTTests.cpp26 const char *AnnotatedCode; member
34 Annotations Test(Pair.AnnotatedCode); in TEST_P()
DASTTests.cpp31 StringRef AnnotatedCode; in TEST() member
38 Annotations File(T.AnnotatedCode); in TEST()
DXRefsTests.cpp1846 StringRef AnnotatedCode; in TEST() member
1859 Annotations File(T.AnnotatedCode); in TEST()
1864 EXPECT_NE(Rec.RefIDs, None) << T.AnnotatedCode; in TEST()
1866 EXPECT_EQ(Rec.RefIDs, None) << T.AnnotatedCode; in TEST()
1872 llvm::StringRef AnnotatedCode; in TEST() member
1925 Annotations File(C.AnnotatedCode); in TEST()
/external/llvm-project/clang/unittests/Sema/
DCodeCompleteTest.cpp111 CompletionContext runCodeCompleteOnCode(StringRef AnnotatedCode) { in runCodeCompleteOnCode() argument
112 llvm::Annotations A(AnnotatedCode); in runCodeCompleteOnCode()
117 collectPreferredTypes(StringRef AnnotatedCode, in collectPreferredTypes() argument
119 llvm::Annotations A(AnnotatedCode); in collectPreferredTypes()
/external/llvm-project/clang/unittests/Tooling/
DSourceCodeTest.cpp108 bool runOverAnnotated(llvm::StringRef AnnotatedCode, in runOverAnnotated() argument
110 Code = llvm::Annotations(AnnotatedCode);
116 EXPECT_EQ(MatchCount, 1) << AnnotatedCode;
331 auto Visit = [&](llvm::StringRef AnnotatedCode) { in TEST() argument
332 Visitor.runOverAnnotated(AnnotatedCode, {"-fparse-all-comments"}); in TEST()
/external/llvm-project/clang/unittests/Tooling/Syntax/
DBuildTreeTest.cpp45 auto AnnotatedCode = llvm::Annotations(CodeWithAnnotations); in treeDumpEqualOnAnnotations() local
46 auto *Root = buildTree(AnnotatedCode.code(), GetParam()); in treeDumpEqualOnAnnotations()
54 auto AnnotatedRanges = AnnotatedCode.ranges(); in treeDumpEqualOnAnnotations()
72 << AnnotatedCode.code().slice(AnnotatedRanges[i].Begin, in treeDumpEqualOnAnnotations()