Changeset fb04321 for src/Parser


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

more cleanup for bit-field type usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.