Changeset 768b3b4f for src/AST/FunctionSpec.hpp
- Timestamp:
- May 13, 2019, 2:01:20 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 712348a, 9b81fed3
- Parents:
- b78129a (diff), 336d0b3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/FunctionSpec.hpp
rb78129a r768b3b4f 31 31 32 32 /// Bitflag type for storage classes 33 union Specs { 34 unsigned int val; 35 struct { 36 bool is_inline : 1; 37 bool is_noreturn : 1; 38 bool is_fortran : 1; 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 ) 39 43 }; 40 44 41 MakeBitfield( Specs ) 42 MakeBitfieldPrint( NumSpecs ) 45 constexpr spec_flags( unsigned int val ) : val(val) {} 43 46 }; 44 47 48 using Specs = bitfield<spec_flags>; 45 49 } 46 50 }
Note:
See TracChangeset
for help on using the changeset viewer.