Searched refs:AnnotatedCode (Results 1 – 11 of 11) sorted by relevance
| /llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/ |
| H A D | TestingSupport.cpp | 57 llvm::Annotations AnnotatedCode) { in buildStatementToAnnotationMapping() argument 77 auto Annotations = AnnotatedCode.ranges(); in buildStatementToAnnotationMapping() 79 auto Code = AnnotatedCode.code(); in buildStatementToAnnotationMapping()
|
| H A D | TestingSupportTest.cpp | 43 llvm::Annotations AnnotatedCode(Code); in runTest() local 45 AnnotatedCode.code(), {"-fsyntax-only", "-std=c++17"}); in runTest() 51 test::buildStatementToAnnotationMapping(Func, AnnotatedCode); in runTest()
|
| H A D | TestingSupport.h | 63 llvm::Annotations AnnotatedCode); 84 llvm::Annotations AnnotatedCode(Code); 86 AnnotatedCode.code(), Args, "input.cc", "clang-dataflow-test", 126 StmtToAnnotations = buildStatementToAnnotationMapping(F, AnnotatedCode);
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | FindTargetTests.cpp | 1127 std::string AnnotatedCode; member 1172 std::string AnnotatedCode; in annotateReferencesInFoo() local 1189 AnnotatedCode += Code.substr(NextCodeChar, Offset - NextCodeChar); in annotateReferencesInFoo() 1190 AnnotatedCode += "$" + std::to_string(I) + "^"; in annotateReferencesInFoo() 1195 AnnotatedCode += Code.substr(NextCodeChar); in annotateReferencesInFoo() 1201 return AllRefs{std::move(AnnotatedCode), std::move(DumpedReferences)}; in annotateReferencesInFoo() 1922 EXPECT_EQ(ExpectedCode, Actual.AnnotatedCode); in TEST_F()
|
| H A D | PrintASTTests.cpp | 25 const char *AnnotatedCode; member 33 Annotations Test(Pair.AnnotatedCode); in TEST_P()
|
| H A D | SemanticHighlightingTests.cpp | 1040 llvm::StringRef AnnotatedCode = R"cpp( in TEST() local 1044 auto Toks = toSemanticTokens(tokens(AnnotatedCode), in TEST() 1045 Annotations(AnnotatedCode).code()); in TEST()
|
| H A D | ASTTests.cpp | 37 StringRef AnnotatedCode; in TEST() member 235 Annotations File(T.AnnotatedCode); in TEST() 241 SCOPED_TRACE(T.AnnotatedCode); in TEST()
|
| H A D | XRefsTests.cpp | 2364 StringRef AnnotatedCode; in TEST() member 2377 Annotations File(T.AnnotatedCode); in TEST() 2382 EXPECT_NE(Rec.RefIDs, None) << T.AnnotatedCode; in TEST() 2384 EXPECT_EQ(Rec.RefIDs, None) << T.AnnotatedCode; in TEST() 2390 llvm::StringRef AnnotatedCode; in TEST() member 2443 Annotations File(C.AnnotatedCode); in TEST()
|
| /llvm-project-15.0.7/clang/unittests/Sema/ |
| H A D | CodeCompleteTest.cpp | 111 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()
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | SourceCodeTest.cpp | 108 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()
|
| /llvm-project-15.0.7/clang/unittests/Tooling/Syntax/ |
| H A D | BuildTreeTest.cpp | 43 auto AnnotatedCode = llvm::Annotations(CodeWithAnnotations); in treeDumpEqualOnAnnotations() local 44 auto *Root = buildTree(AnnotatedCode.code(), GetParam()); in treeDumpEqualOnAnnotations() 46 auto ErrorOK = errorOK(AnnotatedCode.code()); in treeDumpEqualOnAnnotations() 50 auto AnnotatedRanges = AnnotatedCode.ranges(); in treeDumpEqualOnAnnotations() 68 << AnnotatedCode.code().slice(AnnotatedRanges[i].Begin, in treeDumpEqualOnAnnotations()
|