Ignore:
Timestamp:
Dec 3, 2014, 3:08:38 PM (10 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:
d9a0e76
Parents:
42dcae7
Message:

underscore changes, ptrdiff_t changes, formating, _Bool prelude

File:
1 edited

Legend:

Unmodified
Added
Removed
  • translator/Parser/LinkageSpec.h

    r42dcae7 r3848e0e  
    1 /*
    2  * This file is part of the Cforall project
    3  *
    4  * $Id: LinkageSpec.h,v 1.3 2003/01/29 14:55:08 rcbilson Exp $
    5  *
    6  */
    7 
    81#ifndef LINKAGESPEC_H
    92#define LINKAGESPEC_H
     
    114#include <string>
    125
    13 struct LinkageSpec
    14 {
    15   enum Type
    16   {
    17     Intrinsic,          // C built-in defined in prelude
    18     Cforall,            // ordinary
    19     C,                  // not overloadable, not mangled
    20     AutoGen,            // built by translator (struct assignment)
    21     Compiler            // gcc internal
    22   };
     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    };
    2314 
    24   static Type fromString( const std::string& );
    25   static std::string toString( Type );
     15    static Type fromString( const std::string & );
     16    static std::string toString( Type );
    2617 
    27   static bool isDecoratable( Type );
    28   static bool isGeneratable( Type );
    29   static bool isOverloadable( Type );
    30   static bool isBuiltin( Type );
     18    static bool isDecoratable( Type );
     19    static bool isGeneratable( Type );
     20    static bool isOverloadable( Type );
     21    static bool isBuiltin( Type );
    3122};
    3223
    33 #endif /* #ifndef LINKAGESPEC_H */
     24#endif // LINKAGESPEC_H
Note: See TracChangeset for help on using the changeset viewer.