Changeset fb04321


Ignore:
Timestamp:
Mar 16, 2017, 9:22:34 AM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
d6d747d
Parents:
ddfd945
Message:

more cleanup for bit-field type usage

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    rddfd945 rfb04321  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Mar 15 23:31:48 2017
    13 // Update Count     : 479
     12// Last Modified On : Thu Mar 16 09:09:09 2017
     13// Update Count     : 480
    1414//
    1515
     
    895895
    896896        void CodeGenerator::handleStorageClass( DeclarationWithType * decl ) {
    897                 if ( decl->get_storageClasses().val != 0 ) {
     897                if ( decl->get_storageClasses().any() ) {
    898898                        decl->get_storageClasses().print( output );
    899899                } // if
  • src/Parser/DeclarationNode.cc

    rddfd945 rfb04321  
    1010// Created On       : Sat May 16 12:34:05 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Mar 16 08:37:57 2017
    13 // Update Count     : 1006
     12// Last Modified On : Thu Mar 16 09:10:57 2017
     13// Update Count     : 1007
    1414//
    1515
     
    10321032                //    inline _Noreturn int g( int i );  // allowed
    10331033                //    inline _Noreturn int i;                   // disallowed
    1034                 if ( type->kind != TypeData::Function && funcSpecs.val != 0 ) {
     1034                if ( type->kind != TypeData::Function && funcSpecs.any() ) {
    10351035                        throw SemanticError( "invalid function specifier for ", this );
    10361036                } // if
     
    10421042        //    inlne _Noreturn struct S { ... };         // disallowed
    10431043        //    inlne _Noreturn enum   E { ... };         // disallowed
    1044         if ( funcSpecs.val != 0 ) {
     1044        if ( funcSpecs.any() ) {
    10451045                throw SemanticError( "invalid function specifier for ", this );
    10461046        } // if
Note: See TracChangeset for help on using the changeset viewer.