reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
4815 DeclContext *Owner = Record->getDeclContext(); 4818 if (Record->isUnion() && !getLangOpts().CPlusPlus && !getLangOpts().C11) 4819 Diag(Record->getLocation(), diag::ext_anonymous_union); 4820 else if (!Record->isUnion() && getLangOpts().CPlusPlus) 4821 Diag(Record->getLocation(), diag::ext_gnu_anonymous_struct); 4822 else if (!Record->isUnion() && !getLangOpts().C11) 4823 Diag(Record->getLocation(), diag::ext_c11_anonymous_struct); 4830 if (Record->isUnion()) { 4841 Diag(Record->getLocation(), diag::err_anonymous_union_not_static) 4842 << FixItHint::CreateInsertion(Record->getLocation(), "static "); 4868 << Record->isUnion() << "const" 4873 << Record->isUnion() << "volatile" 4878 << Record->isUnion() << "restrict" 4883 << Record->isUnion() << "_Atomic" 4888 << Record->isUnion() << "__unaligned" 4898 for (auto *Mem : Record->decls()) { 4906 << Record->isUnion() << (FD->getAccess() == AS_protected); 4919 } else if (isa<TagDecl>(Mem) && Mem->getDeclContext() != Record) { 4930 << Record->isUnion(); 4934 << Record->isUnion(); 4943 << Record->isUnion(); 4964 << Record->isUnion(); 4966 Diag(Mem->getLocation(), DK) << Record->isUnion(); 4975 if (cast<CXXRecordDecl>(Record)->hasInClassInitializer() && 4978 cast<CXXRecordDecl>(Record)); 4981 if (!Record->isUnion() && !Owner->isRecord()) { 4982 Diag(Record->getLocation(), diag::err_anonymous_struct_not_member) 4996 if (getLangOpts().CPlusPlus && Record->field_empty()) 5008 Context, OwningClass, DS.getBeginLoc(), Record->getLocation(), 5009 /*IdentifierInfo=*/nullptr, Context.getTypeDeclType(Record), TInfo, 5021 Diag(Record->getLocation(), diag::err_mutable_nonmember); 5027 Record->getLocation(), /*IdentifierInfo=*/nullptr, 5028 Context.getTypeDeclType(Record), TInfo, SC); 5039 Record->setAnonymousStructOrUnion(true); 5052 if (InjectAnonymousStructOrUnionMembers(*this, S, Owner, Record, AS, Chain))