diff dmd/TypeClass.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 4290d870944a
children ef02e2e203c2
line wrap: on
line diff
--- a/dmd/TypeClass.d	Sat Aug 28 16:14:07 2010 +0200
+++ b/dmd/TypeClass.d	Sat Aug 28 16:19:48 2010 +0200
@@ -78,24 +78,24 @@
 		assert(false);
 	}
 }
-    ulong size(Loc loc)
+    override ulong size(Loc loc)
 	{
 		return PTRSIZE;
 	}
 	
-    string toChars()
+    override string toChars()
 	{
 		if (mod)
 			return Type.toChars();
 		return sym.toPrettyChars();
 	}
 	
-    Type syntaxCopy()
+    override Type syntaxCopy()
 	{
 		assert(false);
 	}
 	
-    Type semantic(Loc loc, Scope sc)
+    override Type semantic(Loc loc, Scope sc)
 	{
 		//printf("TypeClass.semantic(%s)\n", sym.toChars());
 		if (deco)
@@ -104,12 +104,12 @@
 		return merge();
 	}
 	
-    Dsymbol toDsymbol(Scope sc)
+    override Dsymbol toDsymbol(Scope sc)
 	{
 		return sym;
 	}
 	
-    void toDecoBuffer(OutBuffer buf, int flag)
+    override void toDecoBuffer(OutBuffer buf, int flag)
 	{
 		string name = sym.mangle();
 		//printf("TypeClass.toDecoBuffer('%s' flag=%d mod=%x) = '%s'\n", toChars(), flag, mod, name);
@@ -117,7 +117,7 @@
 		buf.printf("%s", name);
 	}
 	
-    void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod)
+    override void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod)
 	{
 		if (mod != this.mod)
 		{	
@@ -127,7 +127,7 @@
 		buf.writestring(sym.toChars());
 	}
 
-    Expression dotExp(Scope sc, Expression e, Identifier ident)
+    override Expression dotExp(Scope sc, Expression e, Identifier ident)
 	{
 		uint offset;
 
@@ -459,12 +459,12 @@
 		return de.semantic(sc);
 	}
 	
-    ClassDeclaration isClassHandle()
+    override ClassDeclaration isClassHandle()
 	{
 		return sym;
 	}
 	
-    bool isBaseOf(Type t, int* poffset)
+    override bool isBaseOf(Type t, int* poffset)
 	{
 		if (t.ty == Tclass)
 		{   
@@ -478,7 +478,7 @@
 		return false;
 	}
 	
-    MATCH implicitConvTo(Type to)
+    override MATCH implicitConvTo(Type to)
 	{
 		//printf("TypeClass.implicitConvTo(to = '%s') %s\n", to.toChars(), toChars());
 		MATCH m = constConv(to);
@@ -514,7 +514,7 @@
 		return m;
 	}
 	
-    Expression defaultInit(Loc loc)
+    override Expression defaultInit(Loc loc)
 	{
 version (LOGDEFAULTINIT) {
 		printf("TypeClass::defaultInit() '%s'\n", toChars());
@@ -524,12 +524,12 @@
 		return e;
 	}
 	
-    bool isZeroInit(Loc loc)
+    override bool isZeroInit(Loc loc)
 	{
 		return true;
 	}
 	
-    MATCH deduceType(Scope sc, Type tparam, TemplateParameters parameters, Objects dedtypes)
+    override MATCH deduceType(Scope sc, Type tparam, TemplateParameters parameters, Objects dedtypes)
 	{
 		//printf("TypeClass.deduceType(this = %s)\n", toChars());
 
@@ -580,17 +580,17 @@
 		return Type.deduceType(sc, tparam, parameters, dedtypes);
 	}
 	
-    bool isauto()
+    override bool isauto()
 	{
 		return sym.isauto;
 	}
 	
-    bool checkBoolean()
+    override bool checkBoolean()
 	{
 		return true;
 	}
 	
-    TypeInfoDeclaration getTypeInfoDeclaration()
+    override TypeInfoDeclaration getTypeInfoDeclaration()
 	{
 		if (sym.isInterfaceDeclaration())
 			return new TypeInfoInterfaceDeclaration(this);
@@ -598,12 +598,12 @@
 			return new TypeInfoClassDeclaration(this);
 	}
 	
-    bool hasPointers()
+    override bool hasPointers()
 	{
 		return true;
 	}
 	
-    bool builtinTypeInfo()
+    override bool builtinTypeInfo()
 	{
 		/* This is statically put out with the ClassInfo, so
 		 * claim it is built in so it isn't regenerated by each module.
@@ -616,12 +616,12 @@
 	}
 	
 version (DMDV2) {
-    Type toHeadMutable()
+    override Type toHeadMutable()
 	{
 		assert(false);
 	}
 	
-    MATCH constConv(Type to)
+    override MATCH constConv(Type to)
 	{
 		if (equals(to))
 			return MATCH.MATCHexact;
@@ -640,7 +640,7 @@
 }
 }
 
-    type* toCtype()
+    override type* toCtype()
 	{
 		type* t;
 		Symbol* s;
@@ -687,8 +687,8 @@
 		return t;
 	}
 	
-    Symbol* toSymbol()
+    override Symbol* toSymbol()
 	{
 		return sym.toSymbol();
 	}
-}
\ No newline at end of file
+}