Ignore:
Timestamp:
May 16, 2015, 3:36:19 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
a32b204
Parents:
b8508a2
Message:

licencing: first groups of files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • translator/Parser/LinkageSpec.h

    rb8508a2 rb87a5ed  
     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
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Sat May 16 13:26:14 2015
     13// Update Count     : 3
     14//
     15
    116#ifndef LINKAGESPEC_H
    217#define LINKAGESPEC_H
     
    520
    621struct 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     };
     22        enum Type {
     23                Intrinsic,                                                                              // C built-in defined in prelude
     24                Cforall,                                                                                // ordinary
     25                C,                                                                                              // not overloadable, not mangled
     26                AutoGen,                                                                                // built by translator (struct assignment)
     27                Compiler                                                                                // gcc internal
     28        };
    1429 
    15     static Type fromString( const std::string & );
    16     static std::string toString( Type );
     30        static Type fromString( const std::string & );
     31        static std::string toString( Type );
    1732 
    18     static bool isDecoratable( Type );
    19     static bool isGeneratable( Type );
    20     static bool isOverloadable( Type );
    21     static bool isBuiltin( Type );
     33        static bool isDecoratable( Type );
     34        static bool isGeneratable( Type );
     35        static bool isOverloadable( Type );
     36        static bool isBuiltin( Type );
    2237};
    2338
    2439#endif // LINKAGESPEC_H
     40
     41// Local Variables: //
     42// tab-width: 4 //
     43// mode: c++ //
     44// compile-command: "make install" //
     45// End: //
Note: See TracChangeset for help on using the changeset viewer.