Home
last modified time | relevance | path

Searched refs:Annotations (Results 1 – 25 of 96) sorted by relevance

1234

/llvm-project-15.0.7/llvm/unittests/Support/
H A DAnnotationsTest.cpp16 llvm::Annotations::Range range(size_t Begin, size_t End) { in range()
17 llvm::Annotations::Range R; in range()
30 EXPECT_EQ(llvm::Annotations("^ab").point(), 0u); in TEST()
31 EXPECT_EQ(llvm::Annotations("a^b").point(), 1u); in TEST()
32 EXPECT_EQ(llvm::Annotations("ab^").point(), 2u); in TEST()
35 EXPECT_THAT(llvm::Annotations("^a^bc^d^").points(), in TEST()
77 EXPECT_EQ(llvm::Annotations("a$^b").point(""), 1u); in TEST()
81 llvm::Annotations Annotated("a$p1^bcd$p2^123$p1^345"); in TEST()
91 EXPECT_DEATH(llvm::Annotations("ab[[c]]def").point(), in TEST()
93 EXPECT_DEATH(llvm::Annotations("a^b^cdef").point(), in TEST()
[all …]
/llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/
H A DTestingSupport.cpp57 llvm::Annotations AnnotatedCode) { in buildStatementToAnnotationMapping()
77 auto Annotations = AnnotatedCode.ranges(); in buildStatementToAnnotationMapping() local
78 std::reverse(Annotations.begin(), Annotations.end()); in buildStatementToAnnotationMapping()
86 if (I < Annotations.size() && Annotations[I].Begin >= Offset) { in buildStatementToAnnotationMapping()
87 auto Range = Annotations[I]; in buildStatementToAnnotationMapping()
103 if (I < Annotations.size() && Annotations[I].Begin >= Offset) { in buildStatementToAnnotationMapping()
112 if (I < Annotations.size()) { in buildStatementToAnnotationMapping()
118 .getLocWithOffset(Annotations[I].Begin) in buildStatementToAnnotationMapping()
H A DTestingSupport.h63 llvm::Annotations AnnotatedCode);
70 llvm::DenseMap<const clang::Stmt *, std::string> &Annotations; member
84 llvm::Annotations AnnotatedCode(Code);
129 auto &Annotations = *StmtToAnnotations; variable
139 Analysis, Annotations, BlockStates};
169 auto &Annotations = AnalysisData.Annotations;
183 &Annotations](const clang::CFGStmt &Stmt,
185 auto It = Annotations.find(Stmt.getStmt());
186 if (It == Annotations.end())
H A DTestingSupportTest.cpp43 llvm::Annotations AnnotatedCode(Code); in runTest()
65 [](const llvm::DenseMap<const Stmt *, std::string> &Annotations) { in TEST() argument
66 ASSERT_EQ(Annotations.size(), static_cast<unsigned int>(1)); in TEST()
67 EXPECT_TRUE(isa<ReturnStmt>(Annotations.begin()->first)); in TEST()
68 EXPECT_EQ(Annotations.begin()->second, "ok"); in TEST()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DDiagnosticsTests.cpp139 Annotations Test(R"cpp( in TEST()
202 Annotations Test(R"cpp( in TEST()
233 Annotations Test(R"cpp( in TEST()
245 Annotations Test(R"cpp( in TEST()
283 Annotations Test(R"cpp( in TEST()
345 Annotations Test(R"cpp( in TEST()
362 Annotations Main(R"cpp( in TEST()
383 Annotations Main(R"cpp( in TEST()
408 Annotations Main(R"cpp( in TEST()
432 Annotations Main(R"cpp( in TEST()
[all …]
H A DXRefsTests.cpp128 Annotations T(Test); in TEST()
265 Annotations T(Test); in TEST()
1002 Annotations T(Test); in TEST()
1102 Annotations T(Test); in TEST()
1158 Annotations T(Test); in TEST()
1188 auto T = Annotations( in TEST()
1232 Annotations T(Test); in TEST()
1727 Annotations T(Test); in TEST()
1865 Annotations A(Case); in TEST()
1880 Annotations A(Case); in TEST()
[all …]
H A DCallHierarchyTests.cpp60 Annotations Source(R"cpp( in TEST()
103 Annotations Source(R"objc( in TEST()
151 Annotations Source(R"cpp( in TEST()
181 Annotations Source(R"cpp( in TEST()
216 Annotations CalleeH(R"cpp( in TEST()
219 Annotations CalleeC(R"cpp( in TEST()
223 Annotations Caller1H(R"cpp( in TEST()
226 Annotations Caller1C(R"cpp( in TEST()
233 Annotations Caller2H(R"cpp( in TEST()
236 Annotations Caller2C(R"cpp( in TEST()
[all …]
H A DAnnotations.h23 class Annotations : public llvm::Annotations {
24 using Base = llvm::Annotations;
27 using llvm::Annotations::Annotations;
H A DAnnotations.cpp15 Position Annotations::point(llvm::StringRef Name) const { in point()
19 std::vector<Position> Annotations::points(llvm::StringRef Name) const { in points()
30 static clangd::Range toLSPRange(llvm::StringRef Code, Annotations::Range R) { in toLSPRange()
37 clangd::Range Annotations::range(llvm::StringRef Name) const { in range()
41 std::vector<clangd::Range> Annotations::ranges(llvm::StringRef Name) const { in ranges()
46 for (Annotations::Range R : OffsetRanges) in ranges()
H A DTypeHierarchyTests.cpp57 Annotations Source(R"cpp( in TEST()
82 Annotations Source(R"cpp( in TEST()
106 Annotations Source(R"cpp( in TEST()
129 Annotations Source(R"cpp( in TEST()
159 Annotations Source(R"cpp( in TEST()
195 Annotations Source(R"cpp( in TEST()
238 Annotations Source(R"cpp( in TEST()
267 Annotations Source(R"cpp( in TEST()
292 Annotations Source(R"cpp( in TEST()
327 Annotations Source(R"cpp( in TEST()
[all …]
H A DRenameTests.cpp824 Annotations Code(T); in TEST()
1075 Annotations T(Case.Code); in TEST()
1109 Annotations Code("int ^x();"); in TEST()
1168 Annotations Code(Test); in TEST()
1197 Annotations Code(Test); in TEST()
1237 Annotations FooCC(R"cpp( in TEST()
1602 Annotations FooH(T.FooH); in TEST()
1603 Annotations FooCC(T.FooCC); in TEST()
1651 Annotations Code("[[��]]"); in TEST()
1669 Annotations T(R"cpp( in TEST()
[all …]
H A DConfigYAMLTests.cpp95 Annotations YAML(R"yaml( in TEST()
111 Annotations YAML(R"yaml( in TEST()
157 Annotations YAML(R"yaml( in TEST()
174 Annotations YAML(R"yaml( in TEST()
193 Annotations YAML(R"yaml( in TEST()
206 Annotations YAML(R"yaml( in TEST()
223 Annotations YAML(R"yaml( in TEST()
236 Annotations YAML(R"yaml( in TEST()
252 Annotations YAML(R"yaml( in TEST()
267 Annotations YAML(R"yaml( in TEST()
H A DSelectionTests.cpp28 Annotations Test(MarkedCode); in makeSelectionTree()
534 Annotations Test(C.Code); in TEST()
574 auto AST = TestTU::withCode(Annotations(Code).code()).build(); in TEST()
588 auto AST = TestTU::withCode(Annotations(Code).code()).build(); in TEST()
631 Annotations Test(C); in TEST()
654 Annotations Test(Case); in TEST()
672 Annotations Test(Case); in TEST()
689 Annotations Test(Case); in TEST()
702 Test = Annotations(Case); in TEST()
715 auto AST = TestTU::withCode(Annotations(Test).code()).build(); in TEST()
[all …]
H A DSymbolCollectorTests.cpp437 Annotations Header(R"( in TEST_F()
460 Annotations Header(R"( in TEST_F()
579 Annotations Header(R"( in TEST_F()
586 Annotations Main(R"( in TEST_F()
615 Annotations Header(R"( in TEST_F()
622 Annotations Main(R"( in TEST_F()
648 Annotations Header(R"( in TEST_F()
652 Annotations Main(R"( in TEST_F()
778 Annotations Header(R"( in TEST_F()
790 Annotations Main(R"( in TEST_F()
[all …]
H A DSemanticSelectionTests.cpp157 auto T = Annotations(Test); in TEST()
185 Annotations SourceAnnotations(SourceContents); in TEST()
260 auto T = Annotations(Test); in TEST()
340 auto T = Annotations(Test); in TEST()
H A DSourceCodeTests.cpp286 Annotations Source(R"cpp( in TEST()
361 llvm::Annotations A(Text); in tryWord()
532 Annotations Code(R"cpp( in TEST()
548 Annotations Code("^MACRO"); in TEST()
600 Annotations Test(R"cpp( in TEST()
657 Annotations Test(Case); in TEST()
680 Annotations Test(Case); in TEST()
747 Annotations Test(Case.Code); in TEST()
759 Annotations Code(R"cpp( in TEST()
833 Annotations SrcBefore(Steps[I - 1].Src); in stepByStep()
[all …]
/llvm-project-15.0.7/llvm/lib/Testing/Support/
H A DAnnotations.cpp26 Annotations::Annotations(llvm::StringRef Text) { in Annotations() function in Annotations
68 size_t Annotations::point(llvm::StringRef Name) const { in point()
75 std::vector<size_t> Annotations::points(llvm::StringRef Name) const { in points()
82 Annotations::Range Annotations::range(llvm::StringRef Name) const { in range()
89 std::vector<Annotations::Range>
90 Annotations::ranges(llvm::StringRef Name) const { in ranges()
98 const llvm::Annotations::Range &R) { in operator <<()
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/CodeView/
H A DSymbolRecord.h173 BinaryAnnotationIterator(ArrayRef<uint8_t> Annotations) : Data(Annotations) {} in BinaryAnnotationIterator()
204 if (Annotations.empty()) in GetCompressedAnnotation()
207 uint8_t FirstByte = Annotations.front(); in GetCompressedAnnotation()
208 Annotations = Annotations.drop_front(); in GetCompressedAnnotation()
213 if (Annotations.empty()) in GetCompressedAnnotation()
217 Annotations = Annotations.drop_front(); in GetCompressedAnnotation()
222 if (Annotations.empty()) in GetCompressedAnnotation()
225 uint8_t ThirdByte = Annotations.front(); in GetCompressedAnnotation()
226 Annotations = Annotations.drop_front(); in GetCompressedAnnotation()
228 if (Annotations.empty()) in GetCompressedAnnotation()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/tweaks/
H A DTweakTesting.cpp52 llvm::Annotations::Range rangeOrPoint(const llvm::Annotations &A) { in rangeOrPoint()
64 applyTweak(ParsedAST &AST, llvm::Annotations::Range Range, StringRef TweakID, in applyTweak()
87 llvm::Annotations Input(WrappedCode); in apply()
129 llvm::Annotations::Range Range) const { in isAvailable()
157 llvm::Annotations::Range Range) { in decorate()
H A DTweakTesting.h97 bool isAvailable(WrappedAST &, llvm::Annotations::Range) const;
100 static std::string decorate(llvm::StringRef, llvm::Annotations::Range);
115 llvm::Annotations A{llvm::StringRef(MarkedCode)}; \
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DSourceCodeTest.cpp91 llvm::Annotations Code;
110 Code = llvm::Annotations(AnnotatedCode);
437 llvm::Annotations Code(R"cpp( in TEST()
454 llvm::Annotations Code(R"cpp( in TEST()
483 llvm::Annotations Code(R"cpp( in TEST()
498 llvm::Annotations Code(R"cpp( in TEST()
626 llvm::Annotations Code{R"cpp( in TEST()
659 llvm::Annotations::Range R1 = Code.range("test1"); in TEST()
660 llvm::Annotations::Range R2 = Code.range("test2"); in TEST()
661 llvm::Annotations::Range R3 = Code.range("test3"); in TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/IR/
H A DLLVMContextImpl.h487 Metadata *Annotations;
497 Flags(Flags), ExtraData(ExtraData), Annotations(Annotations) {}
587 Metadata *Annotations;
604 Annotations(Annotations) {}
712 Metadata *Annotations;
729 Annotations(Annotations), TargetFuncName(TargetFuncName) {}
742 Annotations(N->getRawAnnotations()),
1002 Metadata *Annotations;
1014 Annotations(Annotations) {}
1060 Metadata *Annotations;
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Testing/Support/
H A DAnnotations.h48 class Annotations {
63 Annotations(llvm::StringRef Text);
90 const llvm::Annotations::Range &R);
/llvm-project-15.0.7/clang/unittests/Tooling/Syntax/
H A DMutationsTest.cpp24 using Transformation = std::function<void(const llvm::Annotations & /*Input*/,
28 llvm::Annotations Source(Input); in CheckTransformation()
46 Transformation RemoveStatement = [this](const llvm::Annotations &Input,
/llvm-project-15.0.7/llvm/utils/FileCheck/
H A DFileCheck.cpp384 std::vector<InputAnnotation> &Annotations, in BuildInputAnnotations() argument
456 Annotations.push_back(A); in BuildInputAnnotations()
461 Annotations.push_back(A); in BuildInputAnnotations()
482 Annotations.push_back(B); in BuildInputAnnotations()
538 std::vector<InputAnnotation> &Annotations, in DumpAnnotatedInput() argument
543 llvm::sort(Annotations, in DumpAnnotatedInput()
618 auto AnnotationItr = Annotations.begin(), AnnotationEnd = Annotations.end(); in DumpAnnotatedInput()
886 std::vector<InputAnnotation> Annotations; in main() local
889 Annotations, LabelWidth); in main()
891 InputFileText, Annotations, LabelWidth); in main()

1234