source: translator/Parser/LinkageSpec.h @ 2c2242c

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 2c2242c was 3848e0e, checked in by Peter A. Buhr <pabuhr@…>, 10 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.