Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2992 from WalterBright/pureReturn2
Browse files Browse the repository at this point in the history
pure functions imply scope attribute, but not return attribute 2
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
  • Loading branch information
dlang-bot committed Mar 16, 2020
2 parents ac8fb41 + 16a99ac commit ba5e41d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/demangle.d
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ pure @safe:
return put(val[]);
}

char[] put( const(char)[] val )
char[] put( const(char)[] val ) return
{
pragma(inline, false); // tame dmd inliner

Expand Down Expand Up @@ -787,7 +787,7 @@ pure @safe:
TypeTuple:
B Number Arguments
*/
char[] parseType( char[] name = null )
char[] parseType( char[] name = null ) return
{
static immutable string[23] primitives = [
"char", // a
Expand Down Expand Up @@ -1264,7 +1264,7 @@ pure @safe:
TypeFunction:
CallConvention FuncAttrs Arguments ArgClose Type
*/
char[] parseTypeFunction( char[] name = null, IsDelegate isdg = IsDelegate.no )
char[] parseTypeFunction( char[] name = null, IsDelegate isdg = IsDelegate.no ) return
{
debug(trace) printf( "parseTypeFunction+\n" );
debug(trace) scope(success) printf( "parseTypeFunction-\n" );
Expand Down Expand Up @@ -1856,7 +1856,7 @@ pure @safe:
SymbolName
SymbolName QualifiedName
*/
char[] parseQualifiedName()
char[] parseQualifiedName() return
{
debug(trace) printf( "parseQualifiedName+\n" );
debug(trace) scope(success) printf( "parseQualifiedName-\n" );
Expand Down Expand Up @@ -2166,7 +2166,7 @@ char[] reencodeMangled(const(char)[] mangled) nothrow pure @safe
return true;
}

char[] parseType( ref Remangle d, char[] name = null )
char[] parseType( ref Remangle d, char[] name = null ) return
{
if (d.front != 'Q')
return null;
Expand Down

0 comments on commit ba5e41d

Please sign in to comment.