Home
last modified time | relevance | path

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

123456789

/external/llvm-project/llvm/unittests/Support/
DAnnotationsTest.cpp16 llvm::Annotations::Range range(size_t Begin, size_t End) { in range()
17 llvm::Annotations::Range R; in range()
24 EXPECT_EQ(llvm::Annotations("foo^bar$nnn[[baz$^[[qux]]]]").code(), in TEST()
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()
39 EXPECT_THAT(llvm::Annotations("ab[[cd]]").points(), IsEmpty()); in TEST()
42 EXPECT_THAT(llvm::Annotations("ab^^^cd").points(), ElementsAre(2u, 2u, 2u)); in TEST()
47 EXPECT_EQ(llvm::Annotations("[[a]]bc").range(), range(0, 1)); in TEST()
[all …]
/external/cldr/tools/java/org/unicode/cldr/util/
DAnnotations.java37 public class Annotations { class
83 private final UnicodeMap<Annotations> localeData = new UnicodeMap<>();
95 UnicodeMap<Annotations> templocaleData = null; in cleanup()
100 Annotations parentValue = parentData.baseData.get(key); in cleanup()
101 Annotations myValue = localeData.get(key); in cleanup()
111 templocaleData.put(key, new Annotations(annotations, tts)); in cleanup()
161 …private void addItems(UnicodeMap<Annotations> unicodeMap, UnicodeSet us, Set<String> attributes, S… in addItems()
167 …private void addItems(UnicodeMap<Annotations> unicodeMap, String entry, Set<String> attributes, St… in addItems()
168 Annotations annotations = unicodeMap.get(entry); in addItems()
170 unicodeMap.put(entry, new Annotations(attributes, tts)); in addItems()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Testing/Support/
DAnnotations.cpp26 Annotations::Annotations(llvm::StringRef Text) { in Annotations() function in Annotations
67 size_t Annotations::point(llvm::StringRef Name) const { in point()
74 std::vector<size_t> Annotations::points(llvm::StringRef Name) const { in points()
79 Annotations::Range Annotations::range(llvm::StringRef Name) const { in range()
86 std::vector<Annotations::Range>
87 Annotations::ranges(llvm::StringRef Name) const { in ranges()
93 const llvm::Annotations::Range &R) { in operator <<()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DDiagnosticsTests.cpp114 Annotations Test(R"cpp( in TEST()
171 Annotations Test("[[void]] main() {} // error-ok"); in TEST()
187 Annotations Test(R"cpp( in TEST()
199 Annotations Test(R"cpp( in TEST()
215 Test = Annotations(R"cpp( in TEST()
237 Annotations Test(R"cpp( in TEST()
287 Annotations Test(R"cpp( in TEST()
304 Annotations Main(R"cpp( in TEST()
307 Annotations Header(R"cpp( in TEST()
325 Annotations Main(R"cpp( in TEST()
[all …]
DXRefsTests.cpp60 HighlightsFrom(const Annotations &Test) { in HighlightsFrom()
119 Annotations T(Test); in TEST()
254 Annotations T(Test); in TEST()
296 Annotations SymbolHeader(R"cpp( in TEST()
304 Annotations SymbolCpp(R"cpp( in TEST()
313 auto LocateWithIndex = [&Index](const Annotations &Main) { in TEST()
318 Annotations Test(R"cpp(// only declaration in AST. in TEST()
327 Test = Annotations(R"cpp(// definition in AST. in TEST()
336 Test = Annotations(R"cpp(// forward declaration in AST. in TEST()
343 Test = Annotations(R"cpp(// definition in AST. in TEST()
[all …]
DAnnotations.h23 class Annotations : public llvm::Annotations {
24 using Base = llvm::Annotations;
27 using llvm::Annotations::Annotations;
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()
DTypeHierarchyTests.cpp56 Annotations Source(R"cpp( in TEST()
79 Annotations Source(R"cpp( in TEST()
101 Annotations Source(R"cpp( in TEST()
125 Annotations Source(R"cpp( in TEST()
155 Annotations Source(R"cpp( in TEST()
191 Annotations Source(R"cpp( in TEST()
234 Annotations Source(R"cpp( in TEST()
263 Annotations Source(R"cpp( in TEST()
288 Annotations Source(R"cpp( in TEST()
323 Annotations Source(R"cpp( in TEST()
[all …]
DCallHierarchyTests.cpp53 Annotations Source(R"cpp( in TEST()
100 Annotations Source(R"cpp( in TEST()
130 Annotations Source(R"cpp( in TEST()
165 Annotations CalleeH(R"cpp( in TEST()
168 Annotations CalleeC(R"cpp( in TEST()
172 Annotations Caller1H(R"cpp( in TEST()
175 Annotations Caller1C(R"cpp( in TEST()
182 Annotations Caller2H(R"cpp( in TEST()
185 Annotations Caller2C(R"cpp( in TEST()
193 Annotations Caller3C(R"cpp( in TEST()
DRenameTests.cpp50 std::unique_ptr<RefSlab> buildRefSlab(const Annotations &Code, in buildRefSlab()
79 std::string expectedResult(Annotations Test, llvm::StringRef NewName) { in expectedResult()
83 for (const auto &R : Test.llvm::Annotations::ranges()) { in expectedResult()
830 Annotations Code(T); in TEST()
1031 Annotations T(Case.Code); in TEST()
1074 Annotations Code(Test); in TEST()
1093 Annotations Code("Prot^obuf buf;"); in TEST()
1108 Annotations FooH("void func();"); in TEST()
1109 Annotations FooCC(R"cpp( in TEST()
1157 Annotations FooCode("class [[Foo]] {};"); in TEST()
[all …]
DSelectionTests.cpp28 Annotations Test(MarkedCode); in makeSelectionTree()
439 Annotations Test(C.Code); in TEST()
482 auto AST = TestTU::withCode(Annotations(Code).code()).build(); in TEST()
496 auto AST = TestTU::withCode(Annotations(Code).code()).build(); in TEST()
539 Annotations Test(C); in TEST()
562 Annotations Test(Case); in TEST()
580 Annotations Test(Case); in TEST()
597 Annotations Test(Case); in TEST()
610 Test = Annotations(Case); in TEST()
623 auto AST = TestTU::withCode(Annotations(Test).code()).build(); in TEST()
[all …]
DSymbolCollectorTests.cpp400 Annotations Header(R"( in TEST_F()
423 Annotations Header(R"( in TEST_F()
541 Annotations Header(R"( in TEST_F()
548 Annotations Main(R"( in TEST_F()
577 Annotations Header(R"( in TEST_F()
584 Annotations Main(R"( in TEST_F()
610 Annotations Header(R"( in TEST_F()
614 Annotations Main(R"( in TEST_F()
631 Annotations Header(R"cpp( in TEST_F()
643 Annotations Main(R"cpp( in TEST_F()
[all …]
/external/llvm-project/llvm/lib/Testing/Support/
DAnnotations.cpp26 Annotations::Annotations(llvm::StringRef Text) { in Annotations() function in Annotations
67 size_t Annotations::point(llvm::StringRef Name) const { in point()
74 std::vector<size_t> Annotations::points(llvm::StringRef Name) const { in points()
81 Annotations::Range Annotations::range(llvm::StringRef Name) const { in range()
88 std::vector<Annotations::Range>
89 Annotations::ranges(llvm::StringRef Name) const { in ranges()
97 const llvm::Annotations::Range &R) { in operator <<()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/introspect/
DAnnotationCollector.java8 import com.fasterxml.jackson.databind.util.Annotations;
18 protected final static Annotations NO_ANNOTATIONS = new NoAnnotations();
29 public static Annotations emptyAnnotations() { return NO_ANNOTATIONS; } in emptyAnnotations()
39 public abstract Annotations asAnnotations(); in asAnnotations()
69 public Annotations asAnnotations() { in asAnnotations()
100 public Annotations asAnnotations() { in asAnnotations()
140 public Annotations asAnnotations() { in asAnnotations()
184 implements Annotations, java.io.Serializable
212 implements Annotations, java.io.Serializable
255 implements Annotations, java.io.Serializable
/external/rust/crates/bindgen/src/ir/
Dannotations.rs29 pub struct Annotations { struct
78 impl Default for Annotations { argument
80 Annotations { in default()
95 impl Annotations { implementation
98 pub fn new(cursor: &clang::Cursor) -> Option<Annotations> { in new() argument
99 let mut anno = Annotations::default(); in new()
/external/cldr/tools/java/org/unicode/cldr/tool/
DChartAnnotations.java15 import org.unicode.cldr.util.Annotations;
16 import org.unicode.cldr.util.Annotations.AnnotationSet;
108 Set<String> locales = Annotations.getAvailableLocales(); in writeSubcharts()
110 AnnotationSet english = Annotations.getDataSet("en"); in writeSubcharts()
201 AnnotationSet annotations = Annotations.getDataSet(locale); in writeSubcharts()
202 … AnnotationSet parentAnnotations = Annotations.getDataSet(LocaleIDParser.getParent(locale)); in writeSubcharts()
211 AnnotationSet subAnnotations = Annotations.getDataSet(sub); in writeSubcharts()
212 … AnnotationSet subParentAnnotations = Annotations.getDataSet(LocaleIDParser.getParent(locale)); in writeSubcharts()
341 … + "In this chart, missing items are marked with “" + Annotations.MISSING_MARKER + "”, " in getExplanation()
342 + "‘fallback’ constructed items with “" + Annotations.BAD_MARKER + "”, " in getExplanation()
[all …]
DGenerateDerivedAnnotations.java20 import org.unicode.cldr.util.Annotations;
21 import org.unicode.cldr.util.Annotations.AnnotationSet;
46 .add(Annotations.ENGLISH_MARKER)
47 .add(Annotations.BAD_MARKER)
48 .add(Annotations.MISSING_MARKER)
99 AnnotationSet enAnnotations = Annotations.getDataSet("en"); in main()
114 Set<String> locales = ImmutableSortedSet.copyOf(Annotations.getAvailable()); in main()
129 annotations = Annotations.getDataSet(locale); in main()
133 annotations = Annotations.getDataSet(locale); in main()
DMakeAnnotationHistogram.java8 import org.unicode.cldr.util.Annotations;
9 import org.unicode.cldr.util.Annotations.AnnotationSet;
22 AnnotationSet english = Annotations.getDataSet("en"); in main()
27 for (String locale : Annotations.getAvailable()) { in main()
29 AnnotationSet annotationSet = Annotations.getDataSet(locale); in main()
DCheckAnnotations.java6 import org.unicode.cldr.util.Annotations;
7 import org.unicode.cldr.util.Annotations.AnnotationSet;
12 AnnotationSet data = Annotations.getDataSet("en"); in main()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/CodeView/
DSymbolRecord.h173 BinaryAnnotationIterator(ArrayRef<uint8_t> Annotations) : Data(Annotations) {} in BinaryAnnotationIterator()
203 static uint32_t GetCompressedAnnotation(ArrayRef<uint8_t> &Annotations) { in GetCompressedAnnotation()
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()
216 uint8_t SecondByte = Annotations.front(); in GetCompressedAnnotation()
217 Annotations = Annotations.drop_front(); in GetCompressedAnnotation()
222 if (Annotations.empty()) in GetCompressedAnnotation()
225 uint8_t ThirdByte = Annotations.front(); in GetCompressedAnnotation()
[all …]
/external/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
DSymbolRecord.h173 BinaryAnnotationIterator(ArrayRef<uint8_t> Annotations) : Data(Annotations) {} in BinaryAnnotationIterator()
203 static uint32_t GetCompressedAnnotation(ArrayRef<uint8_t> &Annotations) { in GetCompressedAnnotation()
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()
216 uint8_t SecondByte = Annotations.front(); in GetCompressedAnnotation()
217 Annotations = Annotations.drop_front(); in GetCompressedAnnotation()
222 if (Annotations.empty()) in GetCompressedAnnotation()
225 uint8_t ThirdByte = Annotations.front(); in GetCompressedAnnotation()
[all …]
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ser/impl/
DAttributePropertyWriter.java10 import com.fasterxml.jackson.databind.util.Annotations;
34 Annotations contextAnnotations, JavaType declaredType) { in AttributePropertyWriter()
39 Annotations contextAnnotations, JavaType declaredType, in AttributePropertyWriter()
52 Annotations contextAnnotations, in construct()
/external/guice/core/src/com/google/inject/
DKey.java21 import static com.google.inject.internal.Annotations.generateAnnotation;
22 import static com.google.inject.internal.Annotations.isAllDefaultMethods;
24 import com.google.inject.internal.Annotations;
320 if (Annotations.isMarker(annotationType)) { in strategyFor()
324 return new AnnotationInstanceStrategy(Annotations.canonicalizeIfNamed(annotation)); in strategyFor()
329 annotationType = Annotations.canonicalizeIfNamed(annotationType); in strategyFor()
342 Annotations.isRetainedAtRuntime(annotationType), in ensureRetainedAtRuntime()
349 Annotations.isBindingAnnotation(annotationType), in ensureIsBindingAnnotation()
/external/llvm/include/llvm/DebugInfo/CodeView/
DSymbolRecord.h266 BinaryAnnotationIterator(ArrayRef<uint8_t> Annotations) : Data(Annotations) {} in BinaryAnnotationIterator()
307 static uint32_t GetCompressedAnnotation(ArrayRef<uint8_t> &Annotations) { in GetCompressedAnnotation()
308 if (Annotations.empty()) in GetCompressedAnnotation()
311 uint8_t FirstByte = Annotations.front(); in GetCompressedAnnotation()
312 Annotations = Annotations.drop_front(); in GetCompressedAnnotation()
317 if (Annotations.empty()) in GetCompressedAnnotation()
320 uint8_t SecondByte = Annotations.front(); in GetCompressedAnnotation()
321 Annotations = Annotations.drop_front(); in GetCompressedAnnotation()
326 if (Annotations.empty()) in GetCompressedAnnotation()
329 uint8_t ThirdByte = Annotations.front(); in GetCompressedAnnotation()
[all …]
/external/llvm-project/clang/unittests/Tooling/Syntax/
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,

123456789