Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/LinkageSpec.hpp

    r7f3f63c r14cebb7a  
    3535
    3636        /// Bitflag type for storage classes
    37         struct spec_flags {
    38                 union {
    39                         unsigned int val;
    40                         struct {
    41                                 bool is_mangled      : 1;
    42                                 bool is_generatable  : 1;
    43                                 bool is_overrideable : 1;
    44                                 bool is_builtin      : 1;
    45                                 bool is_gcc_builtin  : 1;
    46                         };
     37        union Spec {
     38                unsigned int val;
     39                struct {
     40                        bool is_mangled      : 1;
     41                        bool is_generatable  : 1;
     42                        bool is_overrideable : 1;
     43                        bool is_builtin      : 1;
     44                        bool is_gcc_builtin  : 1;
    4745                };
    4846
    49                 constexpr spec_flags( unsigned int val ) : val(val) {}
     47                MakeBitfield( Spec )
    5048        };
    51 
    52         using Spec = bitfield<spec_flags>;
    5349
    5450        /// If `cmd` = "C" returns `spec` with `is_mangled = false`.
Note: See TracChangeset for help on using the changeset viewer.