source: src/Parser/LinkageSpec.h @ 4f147cc

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since 4f147cc was 8b7ee09, checked in by Peter A. Buhr <pabuhr@…>, 8 years ago

rename type LinkageSpec::Type to LinkageSpec::Spec, which affects many files

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[b87a5ed]1//
2// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
3//
4// The contents of this file are covered under the licence agreement in the
5// file "LICENCE" distributed with Cforall.
6//
7// LinkageSpec.h --
8//
9// Author           : Rodolfo G. Esteves
10// Created On       : Sat May 16 13:24:28 2015
[3b8e52c]11// Last Modified By : Peter A. Buhr
[8b7ee09]12// Last Modified On : Thu Aug 18 23:47:16 2016
13// Update Count     : 7
[b87a5ed]14//
15
[51b7345]16#ifndef LINKAGESPEC_H
17#define LINKAGESPEC_H
18
19#include <string>
20
[3848e0e]21struct LinkageSpec {
[8b7ee09]22        enum Spec {
[b87a5ed]23                Intrinsic,                                                                              // C built-in defined in prelude
24                Cforall,                                                                                // ordinary
25                C,                                                                                              // not overloadable, not mangled
26                AutoGen,                                                                                // built by translator (struct assignment)
[3b8e52c]27                Compiler,                                                                               // gcc internal
[8b7ee09]28                NoOfSpecs
[b87a5ed]29        };
[51b7345]30 
[8b7ee09]31        static Spec fromString( const std::string & );
32        static std::string toString( Spec );
[51b7345]33 
[8b7ee09]34        static bool isDecoratable( Spec );
35        static bool isGeneratable( Spec );
36        static bool isOverloadable( Spec );
37        static bool isOverridable( Spec );
38        static bool isBuiltin( Spec );
[51b7345]39};
40
[3848e0e]41#endif // LINKAGESPEC_H
[b87a5ed]42
43// Local Variables: //
44// tab-width: 4 //
45// mode: c++ //
46// compile-command: "make install" //
47// End: //
Note: See TracBrowser for help on using the repository browser.