diff dmd/TemplateInstance.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 6557375aff35
children 7e0d548de9e6
line wrap: on
line diff
--- a/dmd/TemplateInstance.d	Sat Aug 28 16:14:07 2010 +0200
+++ b/dmd/TemplateInstance.d	Sat Aug 28 16:19:48 2010 +0200
@@ -242,7 +242,7 @@
 	    return a;
 	}
 
-    Dsymbol syntaxCopy(Dsymbol s)
+    override Dsymbol syntaxCopy(Dsymbol s)
 	{
 	    TemplateInstance ti;
 
@@ -257,7 +257,7 @@
 	    return ti;
 	}
 
-    void semantic(Scope sc)
+    override void semantic(Scope sc)
 	{
 	    if (global.errors)
 		{
@@ -607,7 +607,7 @@
 	}
 	}
 
-    void semantic2(Scope sc)
+    override void semantic2(Scope sc)
 	{
 		int i;
 
@@ -645,7 +645,7 @@
 	}
 	}
 
-    void semantic3(Scope sc)
+    override void semantic3(Scope sc)
 	{
 	version (LOG) {
 		printf("TemplateInstance.semantic3('%s'), semanticRun = %d\n", toChars(), semanticRun);
@@ -670,7 +670,7 @@
 		}
 	}
 
-    void inlineScan()
+    override void inlineScan()
 	{
 	version (LOG) {
 		printf("TemplateInstance.inlineScan('%s')\n", toChars());
@@ -685,7 +685,7 @@
 		}
 	}
 	
-    void toCBuffer(OutBuffer buf, HdrGenState* hgs)
+    override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
 	{
 		int i;
 
@@ -710,7 +710,7 @@
 		buf.writeByte(')');
 	}
 	
-    Dsymbol toAlias()			// resolve real symbol
+    override Dsymbol toAlias()			// resolve real symbol
 	{
 	version (LOG) {
 		printf("TemplateInstance.toAlias()\n");
@@ -732,18 +732,18 @@
 		return inst;
 	}
 	
-    string kind()
+    override string kind()
 	{
 	    return "template instance";
 	}
 	
-    bool oneMember(Dsymbol* ps)
+    override bool oneMember(Dsymbol* ps)
 	{
 	    *ps = null;
 	    return true;
 	}
 	
-    string toChars()
+    override string toChars()
 	{
 		scope OutBuffer buf = new OutBuffer();
 		HdrGenState hgs;
@@ -752,7 +752,7 @@
 		return buf.extractString();
 	}
 	
-    string mangle()
+    override string mangle()
 	{
 	    OutBuffer buf = new OutBuffer();
 	    string id;
@@ -786,7 +786,7 @@
 		return;
 	}
 
-    void toObjFile(int multiobj)			// compile to .obj file
+    override void toObjFile(int multiobj)			// compile to .obj file
 	{
 	version (LOG) {
 		printf("TemplateInstance.toObjFile('%s', this = %p)\n", toChars(), this);
@@ -1423,9 +1423,9 @@
 		return new Identifier(id, TOKidentifier);
 	}
 
-    TemplateInstance isTemplateInstance() { return this; }
+    override TemplateInstance isTemplateInstance() { return this; }
 
-    AliasDeclaration isAliasDeclaration()
+    override AliasDeclaration isAliasDeclaration()
 	{
 		assert(false);
 	}