diff dmd/TypeDArray.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 460959608115
children acd69f84627e
line wrap: on
line diff
--- a/dmd/TypeDArray.d	Sat Aug 28 16:14:07 2010 +0200
+++ b/dmd/TypeDArray.d	Sat Aug 28 16:19:48 2010 +0200
@@ -53,7 +53,7 @@
 		assert(false);
 	}
 }
-    Type syntaxCopy()
+    override Type syntaxCopy()
 	{
 		Type t = next.syntaxCopy();
 		if (t == next)
@@ -66,20 +66,20 @@
 		return t;
 	}
 	
-    ulong size(Loc loc)
+    override ulong size(Loc loc)
 	{
 		//printf("TypeDArray.size()\n");
 		return PTRSIZE * 2;
 	}
 	
-    uint alignsize()
+    override uint alignsize()
 	{
 		// A DArray consists of two ptr-sized values, so align it on pointer size
 		// boundary
 		return PTRSIZE;
 	}
 	
-    Type semantic(Loc loc, Scope sc)
+    override Type semantic(Loc loc, Scope sc)
 	{
 		Type tn = next;
 
@@ -112,14 +112,14 @@
 		return merge();
 	}
 	
-    void toDecoBuffer(OutBuffer buf, int flag)
+    override void toDecoBuffer(OutBuffer buf, int flag)
 	{
 		Type.toDecoBuffer(buf, flag);
 		if (next)
 			next.toDecoBuffer(buf, (flag & 0x100) ? 0 : mod);
 	}
 	
-    void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod)
+    override void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod)
 	{
 		if (mod != this.mod)
 		{
@@ -130,7 +130,7 @@
 		buf.writestring("[]");
 	}
 	
-    Expression dotExp(Scope sc, Expression e, Identifier ident)
+    override Expression dotExp(Scope sc, Expression e, Identifier ident)
 	{
 version (LOGDOTEXP) {
 		printf("TypeDArray.dotExp(e = '%s', ident = '%s')\n", e.toChars(), ident.toChars());
@@ -159,23 +159,23 @@
 		return e;
 	}
 	
-    bool isString()
+    override bool isString()
 	{
 		TY nty = next.toBasetype().ty;
 		return nty == Tchar || nty == Twchar || nty == Tdchar;
 	}
 	
-    bool isZeroInit(Loc loc)
+    override bool isZeroInit(Loc loc)
 	{
 		return true;
 	}
 	
-    bool checkBoolean()
+    override bool checkBoolean()
 	{
 		return true;
 	}
 	
-    MATCH implicitConvTo(Type to)
+    override MATCH implicitConvTo(Type to)
 	{
 		//printf("TypeDArray.implicitConvTo(to = %s) this = %s\n", to.toChars(), toChars());
 		if (equals(to))
@@ -237,7 +237,7 @@
 		return Type.implicitConvTo(to);
 	}
 	
-    Expression defaultInit(Loc loc)
+    override Expression defaultInit(Loc loc)
 	{
 	version (LOGDEFAULTINIT) {
 		printf("TypeDArray.defaultInit() '%s'\n", toChars());
@@ -247,7 +247,7 @@
 		return e;
 	}
 	
-    bool builtinTypeInfo()
+    override bool builtinTypeInfo()
 	{
 	version (DMDV2) {
 		return !mod && (next.isTypeBasic() !is null && !next.mod ||
@@ -258,7 +258,7 @@
 	}
 	}
 version (DMDV2) {
-    MATCH deduceType(Scope sc, Type tparam, TemplateParameters parameters, Objects dedtypes)
+    override MATCH deduceType(Scope sc, Type tparam, TemplateParameters parameters, Objects dedtypes)
 	{
 	static if (false) {
 		printf("TypeDArray.deduceType()\n");
@@ -271,12 +271,12 @@
 		return MATCHnomatch;
 	}
 }
-    TypeInfoDeclaration getTypeInfoDeclaration()
+    override TypeInfoDeclaration getTypeInfoDeclaration()
 	{
 		return new TypeInfoArrayDeclaration(this);
 	}
 
-    bool hasPointers()
+    override bool hasPointers()
 	{
 		return true;
 	}
@@ -285,7 +285,7 @@
     void toCppMangle(OutBuffer buf, CppMangleState* cms);
 }
 
-    type* toCtype()
+    override type* toCtype()
 	{
 		type *t;