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

pure functions imply scope attribute, but not return attribute 2 #2992

Merged
merged 1 commit into from
Mar 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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