Mercurial > projects > ddmd
diff dmd/HaltExp.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 | 10317f0c89a5 |
children | e28b18c23469 |
line wrap: on
line diff
--- a/dmd/HaltExp.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/HaltExp.d Sat Aug 28 16:19:48 2010 +0200 @@ -1,20 +1,20 @@ -module dmd.HaltExp; - -import dmd.Expression; -import dmd.backend.elem; -import dmd.OutBuffer; -import dmd.Loc; -import dmd.Scope; +module dmd.HaltExp; + +import dmd.Expression; +import dmd.backend.elem; +import dmd.OutBuffer; +import dmd.Loc; +import dmd.Scope; import dmd.IRState; -import dmd.Type; -import dmd.HdrGenState; -import dmd.Loc; +import dmd.Type; +import dmd.HdrGenState; +import dmd.Loc; import dmd.TOK; import dmd.backend.Util; import dmd.backend.OPER; -import dmd.backend.TYM; - +import dmd.backend.TYM; + class HaltExp : Expression { this(Loc loc) @@ -22,7 +22,7 @@ super(loc, TOK.TOKhalt, HaltExp.sizeof); } - Expression semantic(Scope sc) + override Expression semantic(Scope sc) { version (LOGSEMANTIC) { printf("HaltExp.semantic()\n"); @@ -31,17 +31,17 @@ return this; } - void toCBuffer(OutBuffer buf, HdrGenState* hgs) + override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { buf.writestring("halt"); } - bool checkSideEffect(int flag) + override bool checkSideEffect(int flag) { return true; } - elem* toElem(IRState* irs) + override elem* toElem(IRState* irs) { elem *e;