Mercurial > projects > ddmd
diff dmd/TypePointer.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/TypePointer.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/TypePointer.d Sat Aug 28 16:19:48 2010 +0200 @@ -41,7 +41,7 @@ return cloneTo(new TypePointer(next)); } } - Type syntaxCopy() + override Type syntaxCopy() { Type t = next.syntaxCopy(); if (t == next) @@ -54,7 +54,7 @@ return t; } - Type semantic(Loc loc, Scope sc) + override Type semantic(Loc loc, Scope sc) { //printf("TypePointer.semantic()\n"); if (deco) @@ -78,12 +78,12 @@ return merge(); } - ulong size(Loc loc) + override ulong size(Loc loc) { return PTRSIZE; } - void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod) + override void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod) { //printf("TypePointer::toCBuffer2() next = %d\n", next->ty); if (mod != this.mod) @@ -96,7 +96,7 @@ buf.writeByte('*'); } - MATCH implicitConvTo(Type to) + override MATCH implicitConvTo(Type to) { //printf("TypePointer.implicitConvTo(to = %s) %s\n", to.toChars(), toChars()); @@ -134,12 +134,12 @@ return MATCH.MATCHnomatch; } - bool isscalar() + override bool isscalar() { return true; } - Expression defaultInit(Loc loc) + override Expression defaultInit(Loc loc) { version (LOGDEFAULTINIT) { printf("TypePointer::defaultInit() '%s'\n", toChars()); @@ -149,17 +149,17 @@ return e; } - bool isZeroInit(Loc loc) + override bool isZeroInit(Loc loc) { return true; } - TypeInfoDeclaration getTypeInfoDeclaration() + override TypeInfoDeclaration getTypeInfoDeclaration() { return new TypeInfoPointerDeclaration(this); } - bool hasPointers() + override bool hasPointers() { return true; } @@ -171,7 +171,7 @@ } } - type* toCtype() + override type* toCtype() { type* tn; type* t; @@ -197,4 +197,4 @@ ctype = t; return t; } -} \ No newline at end of file +}