Home | History | Annotate | Download | only in AST

Lines Matching refs:Field

1174 FieldDecl *ASTContext::getInstantiatedFromUnnamedFieldDecl(FieldDecl *Field) {
1176 = InstantiatedFromUnnamedFieldDecl.find(Field);
1185 assert(!Inst->getDeclName() && "Instantiated field decl is not unnamed");
1186 assert(!Tmpl->getDeclName() && "Template field decl is not unnamed");
1188 "Already noted what unnamed field was instantiated from");
1340 // the field is packed, the struct is packed, or the struct has a
1341 // a max-field-alignment constraint (#pragma pack). So calculate
1342 // the actual alignment of the field within the struct, and then
1344 if (const FieldDecl *Field = dyn_cast<FieldDecl>(VD)) {
1345 const RecordDecl *Parent = Field->getParent();
1354 uint64_t Offset = Layout.getFieldOffset(Field->getFieldIndex());
2126 // so fill in the canonical type field.
2154 // so fill in the canonical type field.
2244 // type either so fill in the canonical type field.
2281 // either, so fill in the canonical type field.
2318 // either, so fill in the canonical type field.
2351 // type either, so fill in the canonical type field.
2393 // be a canonical type either, so fill in the canonical type field.
2655 // either, so fill in the canonical type field. We also have to pull
2694 // so fill in the canonical type field.
2725 // so fill in the canonical type field.
3782 // either, so fill in the canonical type field.
4414 /// \returns the type this bit-field will promote to, or NULL if no
4420 FieldDecl *Field = E->getSourceBitField(); // FIXME: conditional bit-fields?
4421 if (!Field)
4424 QualType FT = Field->getType();
4426 uint64_t BitWidth = Field->getBitWidthValue(*this);
4428 // GCC extension compatibility: if the bit-field size is less than or equal
4582 FieldDecl *Field = FieldDecl::Create(*this, CFConstantStringTypeDecl,
4589 Field->setAccess(AS_public);
4590 CFConstantStringTypeDecl->addDecl(Field);
4634 FieldDecl *Field = FieldDecl::Create(
4638 Field->setAccess(AS_public);
4639 RD->addDecl(Field);
4673 FieldDecl *Field = FieldDecl::Create(
4678 Field->setAccess(AS_public);
4679 RD->addDecl(Field);
5074 /// 'i' or 'I' instead if encoding a struct field, or a pointer!
5089 const FieldDecl *Field) const {
5094 getObjCEncodingForTypeImpl(T, S, true, true, Field,
5379 for (const auto *Field : RDecl->fields()) {
5382 S += Field->getNameAsString();
5387 if (Field->isBitField()) {
5388 getObjCEncodingForTypeImpl(Field->getType(), S, false, true,
5389 Field);
5391 QualType qt = Field->getType();
5461 const FieldDecl *Field = cast<FieldDecl>(Ivars[i]);
5462 if (Field->isBitField())
5463 getObjCEncodingForTypeImpl(Field->getType(), S, false, true, Field);
5465 getObjCEncodingForTypeImpl(Field->getType(), S, false, true, FD,
5609 for (RecordDecl::field_iterator Field = RDecl->field_begin(),
5611 Field != FieldEnd; ++Field, ++i) {
5614 std::make_pair(offs, *Field));
5696 FieldDecl *field = cast<FieldDecl>(dcl);
5699 S += field->getNameAsString();
5703 if (field->isBitField()) {
5704 EncodeBitField(this, S, field->getType(), field);
5706 CurOffs += field->getBitWidthValue(*this);
5709 QualType qt = field->getType();
5716 CurOffs += getTypeSize(field->getType());
5838 FieldDecl *Field = FieldDecl::Create(const_cast<ASTContext &>(*Context),
5847 Field->setAccess(AS_public);
5848 VaListTagDecl->addDecl(Field);
5891 FieldDecl *Field = FieldDecl::Create(*Context, VaListTagDecl,
5899 Field->setAccess(AS_public);
5900 VaListTagDecl->addDecl(Field);
5950 FieldDecl *Field = FieldDecl::Create(const_cast<ASTContext &>(*Context),
5959 Field->setAccess(AS_public);
5960 VaListTagDecl->addDecl(Field);
6009 FieldDecl *Field = FieldDecl::Create(const_cast<ASTContext &>(*Context),
6019 Field->setAccess(AS_public);
6020 VaListDecl->addDecl(Field);
6059 FieldDecl *Field = FieldDecl::Create(const_cast<ASTContext &>(*Context),
6068 Field->setAccess(AS_public);
6069 VaListTagDecl->addDecl(Field);