Changes in src/AST/StorageClasses.hpp [2bb4a01:a300e4a]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/StorageClasses.hpp
r2bb4a01 ra300e4a 20 20 namespace ast { 21 21 22 22 namespace Storage { 23 23 24 /// Bitflags for storage classes 25 enum { 26 Extern = 1 << 0, 27 Static = 1 << 1, 28 Auto = 1 << 2, 29 Register = 1 << 3, 30 ThreadLocal = 1 << 4, 31 NumClasses = 5 24 /// Bitflags for storage classes 25 enum { 26 Extern = 1 << 0, 27 Static = 1 << 1, 28 Auto = 1 << 2, 29 Register = 1 << 3, 30 ThreadLocal = 1 << 4, 31 NumClasses = 5 32 }; 33 34 /// Bitflag type for storage classes 35 union Classes { 36 unsigned int val; 37 struct { 38 bool is_extern : 1; 39 bool is_static : 1; 40 bool is_auto : 1; 41 bool is_register : 1; 42 bool is_threadlocal : 1; 32 43 }; 33 44 34 /// Bitflag type for storage classes 35 union Classes { 36 unsigned int val; 37 struct { 38 bool is_extern : 1; 39 bool is_static : 1; 40 bool is_auto : 1; 41 bool is_register : 1; 42 bool is_threadlocal : 1; 43 }; 45 MakeBitfield( Classes ) 46 MakeBitfieldPrint( NumClasses ) 47 }; 44 48 45 MakeBitfield( Classes ) 46 MakeBitfieldPrint( NumClasses ) 47 }; 48 49 } 49 } 50 50 } 51 51
Note: See TracChangeset
for help on using the changeset viewer.