Ignore:
Timestamp:
May 17, 2015, 1:19:35 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
0dd3a2f
Parents:
b87a5ed
Message:

licencing: second groups of files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • translator/Parser/TypeData.cc

    rb87a5ed ra32b204  
    405405        switch ( kind ) {
    406406          case Aggregate:
    407                 if ( !toplevel && aggregate->members ) {
     407                if ( ! toplevel && aggregate->members ) {
    408408                        ret = clone();
    409409                        ret->qualifiers.clear();
     
    411411                break;
    412412          case Enum:
    413                 if ( !toplevel && enumeration->constants ) {
     413                if ( ! toplevel && enumeration->constants ) {
    414414                        ret = clone();
    415415                        ret->qualifiers.clear();
     
    556556
    557557        for ( std::list< DeclarationNode::BasicType >::const_iterator i = basic->typeSpec.begin(); i != basic->typeSpec.end(); ++i ) {
    558                 if ( !init ) {
     558                if ( ! init ) {
    559559                        init = true;
    560560                        if ( *i == DeclarationNode::Void ) {
    561                                 if ( basic->typeSpec.size() != 1 || !basic->modifiers.empty() ) {
     561                                if ( basic->typeSpec.size() != 1 || ! basic->modifiers.empty() ) {
    562562                                        throw SemanticError( "invalid type specifier \"void\" in type: ", this );
    563563                                } else {
     
    635635                switch ( *i ) {
    636636                  case DeclarationNode::Long:
    637                         if ( !init ) {
     637                        if ( ! init ) {
    638638                                init = true;
    639639                                ret = BasicType::LongSignedInt;
     
    667667                        break;
    668668                  case DeclarationNode::Short:
    669                         if ( !init ) {
     669                        if ( ! init ) {
    670670                                init = true;
    671671                                ret = BasicType::ShortSignedInt;
     
    684684                        break;
    685685                  case DeclarationNode::Signed:
    686                         if ( !init ) {
     686                        if ( ! init ) {
    687687                                init = true;
    688688                                ret = BasicType::SignedInt;
     
    709709                        break;
    710710                  case DeclarationNode::Unsigned:
    711                         if ( !init ) {
     711                        if ( ! init ) {
    712712                                init = true;
    713713                                ret = BasicType::UnsignedInt;
     
    744744
    745745        BasicType *bt;
    746         if ( !init ) {
     746        if ( ! init ) {
    747747                bt = new BasicType( buildQualifiers(), BasicType::SignedInt );
    748748        } else {
     
    781781        assert( kind == Function );
    782782        bool hasEllipsis = function->params ? function->params->get_hasEllipsis() : true;
    783         if ( !function->params ) hasEllipsis = !function->newStyle;
     783        if ( ! function->params ) hasEllipsis = ! function->newStyle;
    784784        FunctionType *ft = new FunctionType( buildQualifiers(), hasEllipsis );
    785785        buildList( function->params, ft->get_parameters() );
Note: See TracChangeset for help on using the changeset viewer.