Changes in src/Parser/LinkageSpec.h [39156ed:13073be]
- File:
-
- 1 edited
-
src/Parser/LinkageSpec.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/LinkageSpec.h
r39156ed r13073be 10 10 // Created On : Sat May 16 13:24:28 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jul 10 16:02:34 201913 // Update Count : 1 812 // Last Modified On : Sat Jul 22 09:32:16 2017 13 // Update Count : 14 14 14 // 15 15 … … 22 22 namespace LinkageSpec { 23 23 // All linkage specs are some combination of these flags: 24 enum { Mangle = 1 << 0, Generate = 1 << 1, Overrideable = 1 << 2, Builtin = 1 << 3, GccBuiltin = 1 << 4, NoOfSpecs = 1 << 5, }; 24 enum { 25 Mangle = 1 << 0, 26 Generate = 1 << 1, 27 Overrideable = 1 << 2, 28 Builtin = 1 << 3, 29 GccBuiltin = 1 << 4, 30 31 NoOfSpecs = 1 << 5, 32 }; 25 33 26 34 union Spec { … … 34 42 }; 35 43 constexpr Spec( unsigned int val ) : val( val ) {} 36 constexpr Spec( Spec const & other ) : val( other.val ) {} 37 constexpr Spec & operator=( const Spec & ) = default; 44 constexpr Spec( Spec const &other ) : val( other.val ) {} 38 45 // Operators may go here. 39 46 // Supports == and != 40 constexpr operator unsigned int () const { return val; }47 constexpr operator unsigned int () const { return val; } 41 48 }; 42 49 43 50 51 Spec linkageCheck( CodeLocation location, const std::string * ); 52 // Returns the Spec with the given name (limited to C, Cforall & BuiltinC) 44 53 Spec linkageUpdate( CodeLocation location, Spec old_spec, const std::string * cmd ); 45 54 /* If cmd = "C" returns a Spec that is old_spec with is_mangled = false
Note:
See TracChangeset
for help on using the changeset viewer.