Changeset 24afc53 for src/AST/Decl.hpp


Ignore:
Timestamp:
May 16, 2019, 1:54:43 PM (5 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
1fb7bfd, f3cc5b6
Parents:
54e41b3 (diff), aa00626 (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.
git-author:
Aaron Moss <a3moss@…> (05/16/19 13:46:32)
git-committer:
Aaron Moss <a3moss@…> (05/16/19 13:54:43)
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Decl.hpp

    r54e41b3 r24afc53  
    114114};
    115115
     116/// Object declaration `int foo()`
    116117class FunctionDecl : public DeclWithType {
    117118public:
     
    126127          stmts( stmts ) {}
    127128
    128         const Type * get_type() const override { return type.get(); }
    129         void set_type(Type * t) override { type = strict_dynamic_cast< FunctionType* >( t ); }
     129        const Type * get_type() const override;
     130        void set_type(Type * t) override;
    130131
    131132        bool has_body() const { return stmts; }
     
    184185        TypeDecl( const CodeLocation& loc, const std::string& name, Storage::Classes storage, Type* b,
    185186                TypeVar::Kind k, bool s, Type* i = nullptr )
    186         : NamedTypeDecl( loc, name, storage, b ), kind( k ), sized( k == TypeVar::Ttype || s ), 
     187        : NamedTypeDecl( loc, name, storage, b ), kind( k ), sized( k == TypeVar::Ttype || s ),
    187188          init( i ) {}
    188189
Note: See TracChangeset for help on using the changeset viewer.