Mercurial > projects > ddmd
diff dmd/TemplateDeclaration.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 | 7e0d548de9e6 |
line wrap: on
line diff
--- a/dmd/TemplateDeclaration.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/TemplateDeclaration.d Sat Aug 28 16:19:48 2010 +0200 @@ -149,7 +149,7 @@ instances = new Array(); } - Dsymbol syntaxCopy(Dsymbol) + override Dsymbol syntaxCopy(Dsymbol) { //printf("TemplateDeclaration.syntaxCopy()\n"); TemplateDeclaration td; @@ -176,7 +176,7 @@ return td; } - void semantic(Scope sc) + override void semantic(Scope sc) { version (LOG) { printf("TemplateDeclaration.semantic(this = %p, id = '%s')\n", this, ident.toChars()); @@ -272,7 +272,7 @@ * Overload existing TemplateDeclaration 'this' with the new one 's'. * Return !=0 if successful; i.e. no conflict. */ - bool overloadInsert(Dsymbol s) + override bool overloadInsert(Dsymbol s) { TemplateDeclaration *pf; TemplateDeclaration f; @@ -322,19 +322,19 @@ return true; } - void toCBuffer(OutBuffer buf, HdrGenState* hgs) + override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { assert(false); } - string kind() + override string kind() { return (onemember && onemember.isAggregateDeclaration()) ? onemember.kind() : "template"; } - string toChars() + override string toChars() { OutBuffer buf = new OutBuffer(); HdrGenState hgs; @@ -362,7 +362,7 @@ return buf.extractString(); } - void emitComment(Scope sc) + override void emitComment(Scope sc) { assert(false); } @@ -1283,7 +1283,7 @@ s.semantic(sc); } - TemplateDeclaration isTemplateDeclaration() { return this; } + override TemplateDeclaration isTemplateDeclaration() { return this; } TemplateTupleParameter isVariadic() { @@ -1293,8 +1293,8 @@ /*********************************** * We can overload templates. */ - bool isOverloadable() + override bool isOverloadable() { return 1; } -} \ No newline at end of file +}