Changeset c7ebbec for src/AST/LinkageSpec.cpp
- Timestamp:
- Dec 21, 2023, 10:21:28 AM (10 months ago)
- Branches:
- master
- Children:
- 116d7e2
- Parents:
- 523e300
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/LinkageSpec.cpp
r523e300 rc7ebbec 27 27 namespace Linkage { 28 28 29 Spec update( CodeLocationloc, Spec spec, const std::string * cmd ) {29 Spec update( const CodeLocation & loc, Spec spec, const std::string * cmd ) { 30 30 assert( cmd ); 31 31 std::unique_ptr<const std::string> guard( cmd ); // allocated by lexer 32 32 if ( *cmd == "\"Cforall\"" ) { 33 spec.is_mangled = true; 34 return spec; 33 spec.is_mangled = spec.is_overloadable = true; 35 34 } else if ( *cmd == "\"C\"" ) { 36 spec.is_mangled = false; 37 return spec; 35 spec.is_mangled = spec.is_overloadable = false; 38 36 } else { 39 37 SemanticError( loc, "Invalid linkage specifier %s", cmd->c_str() ); 40 38 } 39 return spec; 41 40 } 42 41
Note: See TracChangeset
for help on using the changeset viewer.