source: translator/SynTree/TypeDecl.cc @ 48e99f2

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since 48e99f2 was 51b7345, checked in by Peter A. Buhr <pabuhr@…>, 10 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.