rememeber attributes on struct types
authorMatthias Braun <matthias.braun@kit.edu>
Thu, 26 Jul 2012 13:51:07 +0000 (15:51 +0200)
committerMatthias Braun <matthias.braun@kit.edu>
Thu, 26 Jul 2012 13:51:07 +0000 (15:51 +0200)
entity_t.h
parser.c

index 2c429c1..dc20fd5 100644 (file)
@@ -136,6 +136,7 @@ struct compound_t {
        entity_t         *alias; /* used for name mangling of anonymous types */
        scope_t           members;
        decl_modifiers_t  modifiers;
+       attribute_t      *attributes;
        bool              layouted          : 1;
        bool              complete          : 1;
        bool              transparent_union : 1;
index 1fc7ed3..110eb0a 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -2308,6 +2308,7 @@ static compound_t *parse_compound_type_specifier(bool is_struct)
        }
 
        if (attributes != NULL) {
+               entity->compound.attributes = attributes;
                handle_entity_attributes(attributes, entity);
        }