source: translator/SynTree/TypeDecl.cc@ 643a2e1

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors ctor deferred_resn demangler enum forall-pointer-decay gc_noraii jacob/cs343-translation jenkins-sandbox memory new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new string with_gc
Last change on this file since 643a2e1 was 51b73452, checked in by Peter A. Buhr <pabuhr@…>, 11 years ago

initial commit

  • Property mode set to 100644
File size: 454 bytes
Line 
1#include "Declaration.h"
2#include "Type.h"
3#include "utility.h"
4
5
6TypeDecl::TypeDecl( const std::string &name, StorageClass sc, Type *type, Kind kind )
7 : Parent( name, sc, type ), kind( kind )
8{
9}
10
11TypeDecl::TypeDecl( const TypeDecl &other )
12 : Parent( other ), kind( other.kind )
13{
14}
15
16std::string
17TypeDecl::typeString() const
18{
19 static const char *kindNames[] = { "type", "incomplete type", "function type" };
20 return kindNames[ kind ];
21}
22
Note: See TracBrowser for help on using the repository browser.