source: translator/Parser/LinkageSpec.h@ fe3b61b

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 fe3b61b was 3848e0e, checked in by Peter A. Buhr <pabuhr@…>, 11 years ago

underscore changes, ptrdiff_t changes, formating, _Bool prelude

  • Property mode set to 100644
File size: 576 bytes
Line 
1#ifndef LINKAGESPEC_H
2#define LINKAGESPEC_H
3
4#include <string>
5
6struct LinkageSpec {
7 enum Type {
8 Intrinsic, // C built-in defined in prelude
9 Cforall, // ordinary
10 C, // not overloadable, not mangled
11 AutoGen, // built by translator (struct assignment)
12 Compiler // gcc internal
13 };
14
15 static Type fromString( const std::string & );
16 static std::string toString( Type );
17
18 static bool isDecoratable( Type );
19 static bool isGeneratable( Type );
20 static bool isOverloadable( Type );
21 static bool isBuiltin( Type );
22};
23
24#endif // LINKAGESPEC_H
Note: See TracBrowser for help on using the repository browser.