source: translator/Parser/LinkageSpec.h @ 0b8cd722

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 0b8cd722 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
RevLine 
[51b7345]1#ifndef LINKAGESPEC_H
2#define LINKAGESPEC_H
3
4#include <string>
5
[3848e0e]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    };
[51b7345]14 
[3848e0e]15    static Type fromString( const std::string & );
16    static std::string toString( Type );
[51b7345]17 
[3848e0e]18    static bool isDecoratable( Type );
19    static bool isGeneratable( Type );
20    static bool isOverloadable( Type );
21    static bool isBuiltin( Type );
[51b7345]22};
23
[3848e0e]24#endif // LINKAGESPEC_H
Note: See TracBrowser for help on using the repository browser.