Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/StorageClasses.hpp

    red9a1ae r9e1d485  
    2424        /// Bitflags for storage classes
    2525        enum {
    26                 Extern         = 1 << 0,
    27                 Static         = 1 << 1,
    28                 Auto           = 1 << 2,
    29                 Register       = 1 << 3,
    30                 ThreadLocalGcc = 1 << 4,
    31                 ThreadLocalC11 = 1 << 5,
    32                 NumClasses          = 6
     26                Extern      = 1 << 0,
     27                Static      = 1 << 1,
     28                Auto        = 1 << 2,
     29                Register    = 1 << 3,
     30                ThreadLocal = 1 << 4,
     31                NumClasses       = 5
    3332        };
    3433
     
    3837                        unsigned int val;
    3938                        struct {
    40                                 bool is_extern         : 1;
    41                                 bool is_static         : 1;
    42                                 bool is_auto           : 1;
    43                                 bool is_register       : 1;
    44                                 bool is_threadlocalGcc : 1;
    45                                 bool is_threadlocalC11 : 1;
     39                                bool is_extern      : 1;
     40                                bool is_static      : 1;
     41                                bool is_auto        : 1;
     42                                bool is_register    : 1;
     43                                bool is_threadlocal : 1;
    4644                        };
    4745
     
    5048
    5149                constexpr class_flags( unsigned int val = 0 ) : val(val) {}
    52 
    53                 bool is_threadlocal_any() { return this->is_threadlocalC11 || this->is_threadlocalGcc; }
    5450        };
    5551
Note: See TracChangeset for help on using the changeset viewer.