Changeset c3396e0


Ignore:
Timestamp:
Mar 9, 2017, 10:33:58 PM (8 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:
d3bc0ad
Parents:
a7c90d4
Message:

code clean up

Location:
src/Parser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/DeclarationNode.cc

    ra7c90d4 rc3396e0  
    1010// Created On       : Sat May 16 12:34:05 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Mar  7 08:02:09 2017
    13 // Update Count     : 936
     12// Last Modified On : Tue Mar  7 17:28:56 2017
     13// Update Count     : 937
    1414//
    1515
     
    359359        DeclarationNode * newnode = new DeclarationNode;
    360360        newnode->type = new TypeData( TypeData::Pointer );
    361         return newnode->addQualifiers( qualifiers );
     361        if ( qualifiers ) {
     362                return newnode->addQualifiers( qualifiers );
     363        } else {
     364                return newnode;
     365        } // if
    362366} // DeclarationNode::newPointer
    363367
  • src/Parser/TypeData.h

    ra7c90d4 rc3396e0  
    1010// Created On       : Sat May 16 15:18:36 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Mar  7 08:03:53 2017
    13 // Update Count     : 173
     12// Last Modified On : Wed Mar  8 22:28:33 2017
     13// Update Count     : 174
    1414//
    1515
     
    7676        DeclarationNode::Length length = DeclarationNode::NoLength;
    7777        DeclarationNode::BuiltinType builtintype = DeclarationNode::NoBuiltinType;
     78
    7879        typedef std::bitset< DeclarationNode::NoTypeQualifier > TypeQualifiers;
    7980        TypeQualifiers typeQualifiers;
    8081        DeclarationNode * forall;
    8182
    82                 // Basic_t basic;
    83                 Aggregate_t aggregate;
    84                 AggInst_t aggInst;
    85                 Array_t array;
    86                 Enumeration_t enumeration;
    87                 // Variable_t variable;
    88                 Function_t function;
    89                 Symbolic_t symbolic;
    90                 DeclarationNode * tuple;
    91                 ExpressionNode * typeexpr;
    92                 // DeclarationNode::BuiltinType builtin;
     83        // Basic_t basic;
     84        Aggregate_t aggregate;
     85        AggInst_t aggInst;
     86        Array_t array;
     87        Enumeration_t enumeration;
     88        // Variable_t variable;
     89        Function_t function;
     90        Symbolic_t symbolic;
     91        DeclarationNode * tuple;
     92        ExpressionNode * typeexpr;
    9393
    9494        TypeData( Kind k = Unknown );
Note: See TracChangeset for help on using the changeset viewer.