Changeset 7f3f63c for src/AST/FunctionSpec.hpp
- Timestamp:
- May 10, 2019, 2:46:27 PM (5 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:
- 04124c4
- Parents:
- b96d7c1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/FunctionSpec.hpp
rb96d7c1 r7f3f63c 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.