Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/FunctionSpec.hpp

    r7f3f63c ra300e4a  
    3131
    3232        /// Bitflag type for storage classes
    33         struct spec_flags {
    34                 union {
    35                         unsigned int val;
    36                         struct {
    37                                 bool is_inline   : 1;
    38                                 bool is_noreturn : 1;
    39                                 bool is_fortran  : 1;
    40                         };
    41 
    42                         // MakeBitfieldPrint( NumSpecs )
     33        union Specs {
     34                unsigned int val;
     35                struct {
     36                        bool is_inline   : 1;
     37                        bool is_noreturn : 1;
     38                        bool is_fortran  : 1;
    4339                };
    4440
    45                 constexpr spec_flags( unsigned int val ) : val(val) {}
     41                MakeBitfield( Specs )
     42                MakeBitfieldPrint( NumSpecs )
    4643        };
    4744
    48         using Specs = bitfield<spec_flags>;
    4945}
    5046}
Note: See TracChangeset for help on using the changeset viewer.