Ignore:
Timestamp:
Feb 9, 2016, 3:25:05 PM (10 years ago)
Author:
Rob Schluntz <rschlunt@…>
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, with_gc
Children:
7528ba1
Parents:
771b3c3 (diff), bd85400 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into ctor

Conflicts:

src/CodeGen/CodeGenerator.cc
src/GenPoly/Box.cc
src/Makefile.in
src/Parser/ParseNode.h
src/Parser/parser.cc
src/Parser/parser.yy
src/SymTab/Validate.cc
src/SynTree/Initializer.h
src/SynTree/ObjectDecl.cc
src/SynTree/Visitor.h
src/main.cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/TypeData.h

    r771b3c3 rd63eeb0  
    1010// Created On       : Sat May 16 15:18:36 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Jun 26 23:39:03 2015
    13 // Update Count     : 16
     12// Last Modified On : Thu Jan 14 23:31:15 2016
     13// Update Count     : 17
    1414//
    1515
     
    2929        ~TypeData();
    3030        void print( std::ostream &, int indent = 0 ) const;
    31         TypeData *clone() const;
     31        TypeData * clone() const;
    3232
    33         Type *build() const;
    34         FunctionType *buildFunction() const;
     33        Type * build() const;
     34        FunctionType * buildFunction() const;
    3535
    36         TypeData *base;
     36        TypeData * base;
    3737        std::list< DeclarationNode::Qualifier > qualifiers;
    38         DeclarationNode *forall;
     38        DeclarationNode * forall;
    3939
    4040        struct Basic_t {
     
    4646                DeclarationNode::Aggregate kind;
    4747                std::string name;
    48                 DeclarationNode *params;
    49                 ExpressionNode  *actuals;                                               // holds actual parameters later applied to AggInst
    50                 DeclarationNode *fields;
     48                DeclarationNode * params;
     49                ExpressionNode  * actuals;                                              // holds actual parameters later applied to AggInst
     50                DeclarationNode * fields;
    5151        };
    5252
    5353        struct AggInst_t {
    54                 TypeData *aggregate;
    55                 ExpressionNode *params;
     54                TypeData * aggregate;
     55                ExpressionNode * params;
    5656        };
    5757
    5858        struct Array_t {
    59                 ExpressionNode *dimension;
     59                ExpressionNode * dimension;
    6060                bool isVarLen;
    6161                bool isStatic;
     
    6464        struct Enumeration_t {
    6565                std::string name;
    66                 DeclarationNode *constants;
     66                DeclarationNode * constants;
    6767        };
    6868
    6969        struct Function_t {
    70                 DeclarationNode *params;
    71                 DeclarationNode *idList;                                                // old-style
    72                 DeclarationNode *oldDeclList;
    73                 StatementNode *body;
     70                DeclarationNode * params;
     71                DeclarationNode * idList;                                               // old-style
     72                DeclarationNode * oldDeclList;
     73                StatementNode * body;
    7474                bool hasBody;
    7575                bool newStyle;
     
    7979                std::string name;
    8080                bool isTypedef;                                                                 // false => TYPEGENname, true => TYPEDEFname
    81                 DeclarationNode *params;
    82                 ExpressionNode *actuals;
    83                 DeclarationNode *assertions;
     81                DeclarationNode * params;
     82                ExpressionNode * actuals;
     83                DeclarationNode * assertions;
    8484        };
    8585
     
    8787                DeclarationNode::TypeClass tyClass;
    8888                std::string name;
    89                 DeclarationNode *assertions;
     89                DeclarationNode * assertions;
    9090        };
    9191
    9292        struct Tuple_t {
    93                 DeclarationNode *members;
     93                DeclarationNode * members;
    9494        };
    9595 
    9696        struct Typeof_t {
    97                 ExpressionNode *expr;
     97                ExpressionNode * expr;
    9898        };
    9999
    100100        struct Attr_t {
    101101                std::string name;
    102                 ExpressionNode *expr;
    103                 DeclarationNode *type;
     102                ExpressionNode * expr;
     103                DeclarationNode * type;
    104104        };
    105105
    106106        union {
    107                 Basic_t *basic;
    108                 Aggregate_t *aggregate;
    109                 AggInst_t *aggInst;
    110                 Array_t *array;
    111                 Enumeration_t *enumeration;
    112                 Function_t *function;
    113                 Symbolic_t *symbolic;
    114                 Variable_t *variable;
    115                 Tuple_t *tuple;
    116                 Typeof_t *typeexpr;
    117                 Attr_t *attr;
     107                Basic_t * basic;
     108                Aggregate_t * aggregate;
     109                AggInst_t * aggInst;
     110                Array_t * array;
     111                Enumeration_t * enumeration;
     112                Function_t * function;
     113                Symbolic_t * symbolic;
     114                Variable_t * variable;
     115                Tuple_t * tuple;
     116                Typeof_t * typeexpr;
     117                Attr_t * attr;
    118118        };
    119119
    120         TypeData *extractAggregate( bool toplevel = true ) const;
     120        TypeData * extractAggregate( bool toplevel = true ) const;
    121121        // helper function for DeclNodeImpl::build
    122         Declaration * buildDecl( std::string name, DeclarationNode::StorageClass sc, Expression *bitfieldWidth, bool isInline, bool isNoreturn, LinkageSpec::Type linkage, Initializer *init = 0 ) const;
     122        Declaration * buildDecl( std::string name, DeclarationNode::StorageClass sc, Expression * bitfieldWidth, bool isInline, bool isNoreturn, LinkageSpec::Type linkage, Initializer * init = 0 ) const;
    123123        // helper functions for build()
    124124        Type::Qualifiers buildQualifiers() const;
Note: See TracChangeset for help on using the changeset viewer.