/external/rust/crates/syn/src/ |
D | data.rs | 18 pub fields: Fields, 37 pub enum Fields { 75 impl Fields { impl 81 Fields::Unit => crate::punctuated::empty_punctuated_iter(), in iter() 82 Fields::Named(f) => f.named.iter(), in iter() 83 Fields::Unnamed(f) => f.unnamed.iter(), in iter() 92 Fields::Unit => crate::punctuated::empty_punctuated_iter_mut(), in iter_mut() 93 Fields::Named(f) => f.named.iter_mut(), in iter_mut() 94 Fields::Unnamed(f) => f.unnamed.iter_mut(), in iter_mut() 101 Fields::Unit => 0, in len() [all …]
|
D | derive.rs | 60 pub fields: Fields, 166 ) -> Result<(Option<WhereClause>, Fields, Option<Token![;]>)> { in data_struct() argument 185 Ok((where_clause, Fields::Unnamed(fields), Some(semi))) 191 Ok((where_clause, Fields::Named(fields), None)) 194 Ok((where_clause, Fields::Unit, Some(semi))) 247 Fields::Named(fields) => { in to_tokens() 251 Fields::Unnamed(fields) => { in to_tokens() 256 Fields::Unit => { in to_tokens()
|
/external/llvm-project/llvm/include/llvm/ObjectYAML/ |
D | ArchiveYAML.h | 36 Fields["Name"] = {"", 16}; in Child() 37 Fields["LastModified"] = {"0", 12}; in Child() 38 Fields["UID"] = {"0", 6}; in Child() 39 Fields["GID"] = {"0", 6}; in Child() 40 Fields["AccessMode"] = {"0", 8}; in Child() 41 Fields["Size"] = {"0", 10}; in Child() 42 Fields["Terminator"] = {"`\n", 2}; in Child() 45 MapVector<StringRef, Field> Fields; member
|
/external/llvm-project/llvm/lib/Support/ |
D | OptimizedStructLayout.cpp | 20 static void checkValidLayout(ArrayRef<Field> Fields, uint64_t Size, in checkValidLayout() argument 24 for (auto &Field : Fields) { in checkValidLayout() 42 llvm::performOptimizedStructLayout(MutableArrayRef<Field> Fields) { in performOptimizedStructLayout() argument 48 for (auto &Field : Fields) { in performOptimizedStructLayout() 69 auto FirstFlexible = Fields.begin(), E = Fields.end(); in performOptimizedStructLayout() 78 if (!Fields.empty()) in performOptimizedStructLayout() 79 Size = Fields.back().getEndOffset(); in performOptimizedStructLayout() 82 checkValidLayout(Fields, Size, MaxAlign); in performOptimizedStructLayout() 135 for (auto I = Fields.begin(); I != FirstFlexible; ++I) { in performOptimizedStructLayout() 164 checkValidLayout(Fields, LastEnd, MaxAlign); in performOptimizedStructLayout() [all …]
|
/external/pigweed/pw_rpc/ |
D | packet.cc | 29 RpcPacket::Fields field = in FromBuffer() 30 static_cast<RpcPacket::Fields>(decoder.FieldNumber()); in FromBuffer() 33 case RpcPacket::Fields::TYPE: { in FromBuffer() 40 case RpcPacket::Fields::CHANNEL_ID: in FromBuffer() 44 case RpcPacket::Fields::SERVICE_ID: in FromBuffer() 48 case RpcPacket::Fields::METHOD_ID: in FromBuffer() 52 case RpcPacket::Fields::PAYLOAD: in FromBuffer() 56 case RpcPacket::Fields::STATUS: { in FromBuffer()
|
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/ |
D | FieldAccessTest.cs | 47 var fields = TestAllTypes.Descriptor.Fields; in GetValue() 82 fields = TestMap.Descriptor.Fields; in GetValue() 92 var fields = TestAllTypes.Descriptor.Fields; in Clear() 116 fields = TestMap.Descriptor.Fields; in Clear() 126 var fields = TestAllTypes.Descriptor.Fields; in SetValue_SingleFields() 153 var fields = message.Descriptor.Fields; in SetValue_SingleFields_WrongType() 161 var fields = message.Descriptor.Fields; in SetValue_MapFields() 169 var fields = message.Descriptor.Fields; in SetValue_RepeatedFields() 177 var fields = message.Descriptor.Fields; in GetValue_IncorrectType() 192 …Assert.AreSame(descriptor.Fields[TestAllTypes.OneofStringFieldNumber], oneof.Accessor.GetCaseField… in Oneof() [all …]
|
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Reflection/ |
D | FieldAccessTest.cs | 47 var fields = TestAllTypes.Descriptor.Fields; in GetValue() 82 fields = TestMap.Descriptor.Fields; in GetValue() 92 var fields = TestAllTypes.Descriptor.Fields; in Clear() 116 fields = TestMap.Descriptor.Fields; in Clear() 126 var fields = TestAllTypes.Descriptor.Fields; in SetValue_SingleFields() 153 var fields = message.Descriptor.Fields; in SetValue_SingleFields_WrongType() 161 var fields = message.Descriptor.Fields; in SetValue_MapFields() 169 var fields = message.Descriptor.Fields; in SetValue_RepeatedFields() 177 var fields = message.Descriptor.Fields; in GetValue_IncorrectType() 192 …Assert.AreSame(descriptor.Fields[TestAllTypes.OneofStringFieldNumber], oneof.Accessor.GetCaseField… in Oneof() [all …]
|
/external/llvm-project/clang/include/clang/Sema/ |
D | CXXFieldCollector.h | 29 SmallVector<FieldDecl*, 32> Fields; variable 56 Fields.push_back(D); in Add() 68 FieldDecl **getCurFields() { return &*(Fields.end() - getCurNumFields()); } in getCurFields() 72 Fields.resize(Fields.size() - getCurNumFields()); in FinishClass()
|
/external/clang/include/clang/Sema/ |
D | CXXFieldCollector.h | 30 SmallVector<FieldDecl*, 32> Fields; variable 57 Fields.push_back(D); in Add() 69 FieldDecl **getCurFields() { return &*(Fields.end() - getCurNumFields()); } in getCurFields() 73 Fields.resize(Fields.size() - getCurNumFields()); in FinishClass()
|
/external/llvm/lib/IR/ |
D | MDBuilder.cpp | 130 MDNode *MDBuilder::createTBAAStructNode(ArrayRef<TBAAStructField> Fields) { in createTBAAStructNode() argument 131 SmallVector<Metadata *, 4> Vals(Fields.size() * 3); in createTBAAStructNode() 133 for (unsigned i = 0, e = Fields.size(); i != e; ++i) { in createTBAAStructNode() 134 Vals[i * 3 + 0] = createConstant(ConstantInt::get(Int64, Fields[i].Offset)); in createTBAAStructNode() 135 Vals[i * 3 + 1] = createConstant(ConstantInt::get(Int64, Fields[i].Size)); in createTBAAStructNode() 136 Vals[i * 3 + 2] = Fields[i].TBAA; in createTBAAStructNode() 144 StringRef Name, ArrayRef<std::pair<MDNode *, uint64_t>> Fields) { in createTBAAStructTypeNode() argument 145 SmallVector<Metadata *, 4> Ops(Fields.size() * 2 + 1); in createTBAAStructTypeNode() 148 for (unsigned i = 0, e = Fields.size(); i != e; ++i) { in createTBAAStructTypeNode() 149 Ops[i * 2 + 1] = Fields[i].first; in createTBAAStructTypeNode() [all …]
|
/external/pigweed/pw_rpc/size_report/ |
D | base_with_nanopb.cc | 31 using Fields = FieldsType; typedef 34 using Fields = typename NanopbTraits<decltype(pb_decode)>::Fields; typedef 44 pb_encode(&output, static_cast<Fields>(fields), buffer); in DoNanopbStuff() 48 pb_decode(&input, static_cast<Fields>(fields), buffer); in DoNanopbStuff()
|
D | server_with_echo_service.cc | 48 using Fields = FieldsType; typedef 51 using Fields = typename NanopbTraits<decltype(pb_decode)>::Fields; typedef 61 pb_encode(&output, static_cast<Fields>(fields), buffer); in DoNanopbStuff() 65 pb_decode(&input, static_cast<Fields>(fields), buffer); in DoNanopbStuff()
|
/external/pigweed/pw_rpc/nanopb/ |
D | nanopb_common.cc | 30 using Fields = FieldsType; typedef 33 using Fields = typename NanopbTraits<decltype(pb_decode)>::Fields; typedef 40 if (!pb_encode(&output, static_cast<Fields>(fields), proto_struct)) { in Encode() 52 return pb_decode(&input, static_cast<Fields>(fields), proto_struct); in Decode()
|
/external/mockito/src/test/java/org/mockito/internal/util/reflection/ |
D | FieldsTest.java | 12 import static org.mockito.internal.util.reflection.Fields.syntheticField; 18 … assertThat(Fields.allDeclaredFieldsOf(new HierarchyOfClasses()).filter(syntheticField()).names()) in fields_should_return_all_declared_fields_in_hierarchy() 24 … assertThat(Fields.declaredFieldsOf(new HierarchyOfClasses()).filter(syntheticField()).names()) in fields_should_return_declared_fields() 30 …assertThat(Fields.declaredFieldsOf(new NullOrNotNullFields()).notNull().filter(syntheticField()).n… in can_filter_not_null_fields() 36 … assertThat(Fields.declaredFieldsOf(new ValuedFields()).filter(syntheticField()).assignedValues()) in can_get_values_of_instance_fields() 45 assertThat(Fields.declaredFieldsOf(instance).filter(syntheticField()).instanceFields()) in can_get_list_of_InstanceField()
|
/external/llvm-project/llvm/lib/IR/ |
D | MDBuilder.cpp | 197 MDNode *MDBuilder::createTBAAStructNode(ArrayRef<TBAAStructField> Fields) { in createTBAAStructNode() argument 198 SmallVector<Metadata *, 4> Vals(Fields.size() * 3); in createTBAAStructNode() 200 for (unsigned i = 0, e = Fields.size(); i != e; ++i) { in createTBAAStructNode() 201 Vals[i * 3 + 0] = createConstant(ConstantInt::get(Int64, Fields[i].Offset)); in createTBAAStructNode() 202 Vals[i * 3 + 1] = createConstant(ConstantInt::get(Int64, Fields[i].Size)); in createTBAAStructNode() 203 Vals[i * 3 + 2] = Fields[i].Type; in createTBAAStructNode() 211 StringRef Name, ArrayRef<std::pair<MDNode *, uint64_t>> Fields) { in createTBAAStructTypeNode() argument 212 SmallVector<Metadata *, 4> Ops(Fields.size() * 2 + 1); in createTBAAStructTypeNode() 215 for (unsigned i = 0, e = Fields.size(); i != e; ++i) { in createTBAAStructTypeNode() 216 Ops[i * 2 + 1] = Fields[i].first; in createTBAAStructTypeNode() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | MDBuilder.cpp | 201 MDNode *MDBuilder::createTBAAStructNode(ArrayRef<TBAAStructField> Fields) { in createTBAAStructNode() argument 202 SmallVector<Metadata *, 4> Vals(Fields.size() * 3); in createTBAAStructNode() 204 for (unsigned i = 0, e = Fields.size(); i != e; ++i) { in createTBAAStructNode() 205 Vals[i * 3 + 0] = createConstant(ConstantInt::get(Int64, Fields[i].Offset)); in createTBAAStructNode() 206 Vals[i * 3 + 1] = createConstant(ConstantInt::get(Int64, Fields[i].Size)); in createTBAAStructNode() 207 Vals[i * 3 + 2] = Fields[i].Type; in createTBAAStructNode() 215 StringRef Name, ArrayRef<std::pair<MDNode *, uint64_t>> Fields) { in createTBAAStructTypeNode() argument 216 SmallVector<Metadata *, 4> Ops(Fields.size() * 2 + 1); in createTBAAStructTypeNode() 219 for (unsigned i = 0, e = Fields.size(); i != e; ++i) { in createTBAAStructTypeNode() 220 Ops[i * 2 + 1] = Fields[i].first; in createTBAAStructTypeNode() [all …]
|
/external/llvm-project/llvm/utils/TableGen/ |
D | SearchableTableEmitter.cpp | 68 SmallVector<GenericField, 1> Fields; member 77 SmallVector<GenericField, 2> Fields; member 84 for (const auto &Field : Fields) { in getFieldByName() 210 assert(Index.Fields.size() == 1); in getNumericKey() 212 if (Index.Fields[0].Enum) { in getNumericKey() 213 Record *EnumEntry = Rec->getValueAsDef(Index.Fields[0].Name); in getNumericKey() 214 return Index.Fields[0].Enum->EntryMap[EnumEntry]->second; in getNumericKey() 217 return getInt(Rec, Index.Fields[0].Name); in getNumericKey() 224 for (const auto &Field : Index.Fields) { in compareBy() 326 for (const auto &Field : Index.Fields) { in emitLookupFunction() [all …]
|
/external/llvm-project/llvm/tools/obj2yaml/ |
D | archive2yaml.cpp | 52 C.Fields["Name"].Value = ToString(Hdr.Name); in dump() 53 C.Fields["LastModified"].Value = ToString(Hdr.LastModified); in dump() 54 C.Fields["UID"].Value = ToString(Hdr.UID); in dump() 55 C.Fields["GID"].Value = ToString(Hdr.GID); in dump() 56 C.Fields["AccessMode"].Value = ToString(Hdr.AccessMode); in dump() 58 C.Fields["Size"].Value = SizeStr; in dump() 59 C.Fields["Terminator"].Value = ToString(Hdr.Terminator); in dump()
|
/external/pigweed/pw_rpc/raw/ |
D | codegen_test.cc | 72 switch (static_cast<TestRequest::Fields>(decoder.FieldNumber())) { in DecodeRequest() 73 case TestRequest::Fields::INTEGER: in DecodeRequest() 78 case TestRequest::Fields::STATUS_CODE: { in DecodeRequest() 119 switch (static_cast<test::TestResponse::Fields>(decoder.FieldNumber())) { in TEST() 120 case test::TestResponse::Fields::VALUE: { in TEST() 147 static_cast<test::TestStreamResponse::Fields>(decoder.FieldNumber())) { in TEST() 148 case test::TestStreamResponse::Fields::NUMBER: { in TEST() 154 case test::TestStreamResponse::Fields::CHUNK: in TEST()
|
/external/llvm-project/clang/lib/AST/Interp/ |
D | Record.h | 65 return llvm::make_range(Fields.begin(), Fields.end()); in fields() 68 unsigned getNumFields() { return Fields.size(); } in getNumFields() 69 Field *getField(unsigned I) { return &Fields[I]; } in getField() 89 Record(const RecordDecl *, BaseList &&Bases, FieldList &&Fields, 101 FieldList Fields; variable
|
/external/llvm-project/llvm/include/llvm/Bitcode/ |
D | BitcodeConvenience.h | 185 template <typename ElementTy, typename... Fields> class BCRecordCoding { 194 BCRecordCoding<Fields...>::emit(Stream, buffer, code, in emit() 203 BCRecordCoding<Fields...>::read(buffer.slice(1), in read() 210 BCRecordCoding<Fields...>::read(buffer.slice(1), in read() 356 template <typename IDField, typename... Fields> class BCGenericRecordLayout { 384 detail::emitOps<IDField, Fields...>(*Abbrev); 398 static_assert(sizeof...(data) <= sizeof...(Fields) || 399 detail::has_array<Fields...>::value, 401 static_assert(sizeof...(data) >= sizeof...(Fields), 404 detail::BCRecordCoding<IDField, Fields...>::emit( [all …]
|
/external/rust/crates/derive_arbitrary/src/ |
D | lib.rs | 87 Data::Union(data) => arbitrary_structlike(&Fields::Named(data.fields.clone())), in gen_arbitrary_method() 129 fn construct(fields: &Fields, ctor: impl Fn(usize, &Field) -> TokenStream) -> TokenStream { in construct() argument 131 Fields::Named(names) => { in construct() 139 Fields::Unnamed(names) => { in construct() 146 Fields::Unit => quote!(), in construct() 150 fn construct_take_rest(fields: &Fields) -> TokenStream { in construct_take_rest() 161 let size_hint_fields = |fields: &Fields| { in gen_size_hint_method() 169 let size_hint_structlike = |fields: &Fields| { in gen_size_hint_method() 180 Data::Union(data) => size_hint_structlike(&Fields::Named(data.fields.clone())), in gen_size_hint_method()
|
/external/llvm-project/llvm/unittests/Support/ |
D | OptimizedStructLayoutTest.cpp | 24 SmallVector<Field, 16> Fields; member in __anon9b35b3670111::LayoutTest 35 Fields.push_back({Size, Align(Alignment), in flexible() 41 Fields.push_back({Size, Align(Alignment), Offset, Offset}); in fixed() 47 LayoutFields.reserve(Fields.size()); in verify() 48 for (auto &F : Fields) in verify()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | PaddingChecker.cpp | 215 SmallVector<CharUnitPair, 20> Fields; in calculateOptimalPad() local 227 std::back_inserter(Fields), GatherSizesAndAlignments); in calculateOptimalPad() 228 std::sort(Fields.begin(), Fields.end()); in calculateOptimalPad() 237 while (!Fields.empty()) { in calculateOptimalPad() 246 auto CurBegin = Fields.begin(); in calculateOptimalPad() 247 auto CurEnd = Fields.end(); in calculateOptimalPad() 258 Fields.erase(Iter); in calculateOptimalPad() 263 CharUnits NextOffset = NewOffset.alignTo(Fields[0].Align); in calculateOptimalPad()
|
/external/clang/lib/CodeGen/ |
D | CodeGenTBAA.cpp | 177 Fields, in CollectFields() 199 if (!CollectFields(Offset, FieldQTy, Fields, in CollectFields() 211 Fields.push_back(llvm::MDBuilder::TBAAStructField(Offset, Size, TBAATag)); in CollectFields() 222 SmallVector<llvm::MDBuilder::TBAAStructField, 4> Fields; in getTBAAStructInfo() local 223 if (CollectFields(0, QTy, Fields, TypeHasMayAlias(QTy))) in getTBAAStructInfo() 224 return MDHelper.createTBAAStructNode(Fields); in getTBAAStructInfo() 256 SmallVector <std::pair<llvm::MDNode*, uint64_t>, 4> Fields; in getTBAAStructTypeInfo() local 268 Fields.push_back(std::make_pair( in getTBAAStructTypeInfo() 282 MDHelper.createTBAAStructTypeNode(OutName, Fields); in getTBAAStructTypeInfo()
|