Mercurial > projects > ddmd
diff dmd/PtrExp.d @ 72:2e2a5c3f943a
reduced warnings by adding override to the methods
think this also normalizes different line endings used all over the place
author | Trass3r |
---|---|
date | Sat, 28 Aug 2010 16:19:48 +0200 |
parents | cab4c37afb89 |
children | e28b18c23469 |
line wrap: on
line diff
--- a/dmd/PtrExp.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/PtrExp.d Sat Aug 28 16:19:48 2010 +0200 @@ -1,16 +1,16 @@ -module dmd.PtrExp; - -import dmd.Expression; -import dmd.Identifier; -import dmd.backend.elem; -import dmd.UnaExp; -import dmd.InterState; -import dmd.Type; -import dmd.OutBuffer; -import dmd.Loc; -import dmd.Scope; -import dmd.IRState; -import dmd.HdrGenState; +module dmd.PtrExp; + +import dmd.Expression; +import dmd.Identifier; +import dmd.backend.elem; +import dmd.UnaExp; +import dmd.InterState; +import dmd.Type; +import dmd.OutBuffer; +import dmd.Loc; +import dmd.Scope; +import dmd.IRState; +import dmd.HdrGenState; import dmd.TOK; import dmd.GlobalExpressions; import dmd.SymOffExp; @@ -27,8 +27,8 @@ import dmd.backend.Util; import dmd.backend.TYM; import dmd.backend.mTY; -import dmd.backend.OPER; - +import dmd.backend.OPER; + class PtrExp : UnaExp { this(Loc loc, Expression e) @@ -44,7 +44,7 @@ type = t; } - Expression semantic(Scope sc) + override Expression semantic(Scope sc) { version (LOGSEMANTIC) { printf("PtrExp::semantic('%s')\n", toChars()); @@ -80,12 +80,12 @@ return this; } - int isLvalue() + override int isLvalue() { return 1; } - Expression toLvalue(Scope sc, Expression e) + override Expression toLvalue(Scope sc, Expression e) { static if (false) { tym = tybasic(e1.ET.Tty); @@ -99,7 +99,7 @@ } version (DMDV2) { - Expression modifiableLvalue(Scope sc, Expression e) + override Expression modifiableLvalue(Scope sc, Expression e) { //printf("PtrExp.modifiableLvalue() %s, type %s\n", toChars(), type.toChars()); @@ -113,12 +113,12 @@ return Expression.modifiableLvalue(sc, e); } } - void toCBuffer(OutBuffer buf, HdrGenState* hgs) + override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { assert(false); } - elem* toElem(IRState* irs) + override elem* toElem(IRState* irs) { elem* e; @@ -135,7 +135,7 @@ return e; } - Expression optimize(int result) + override Expression optimize(int result) { //printf("PtrExp.optimize(result = x%x) %s\n", result, toChars()); e1 = e1.optimize(result); @@ -180,12 +180,12 @@ return this; } - Expression interpret(InterState istate) + override Expression interpret(InterState istate) { assert(false); } - Identifier opId() + override Identifier opId() { assert(false); }