diff dmd/BinExp.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 ef02e2e203c2
line wrap: on
line diff
--- a/dmd/BinExp.d	Sat Aug 28 16:14:07 2010 +0200
+++ b/dmd/BinExp.d	Sat Aug 28 16:19:48 2010 +0200
@@ -394,7 +394,7 @@
 		this.e2 = e2;
 	}
 	
-    Expression syntaxCopy()
+    override Expression syntaxCopy()
 	{
 		BinExp e = cast(BinExp)copy();
 		e.type = null;
@@ -404,7 +404,7 @@
 		return e;
 	}
 
-    Expression semantic(Scope sc)
+    override Expression semantic(Scope sc)
 	{
 version (LOGSEMANTIC) {
 		printf("BinExp.semantic('%.*s')\n", toChars());
@@ -512,7 +512,7 @@
 		return this;
 	}
 	
-    bool checkSideEffect(int flag)
+    override bool checkSideEffect(int flag)
 	{
 		switch (op) {
 			case TOK.TOKplusplus:
@@ -541,7 +541,7 @@
 		}
 	}
 	
-    void toCBuffer(OutBuffer buf, HdrGenState* hgs)
+    override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
 	{
 		expToCBuffer(buf, hgs, e1, precedence[op]);
 		buf.writeByte(' ');
@@ -627,7 +627,7 @@
 		return this;
 	}
 
-    Expression optimize(int result)
+    override Expression optimize(int result)
 	{
 		//printf("BinExp.optimize(result = %d) %s\n", result, toChars());
 		if (op != TOK.TOKconstruct && op != TOK.TOKblit)	// don't replace const variable with its initializer
@@ -664,7 +664,7 @@
          e1.type.toChars(), e2.type.toChars());
 	}
 
-    void dump(int indent)
+    override void dump(int indent)
 	{
 		assert(false);
 	}
@@ -1324,7 +1324,7 @@
 		return e;
 	}
 	
-    bool canThrow()
+    override bool canThrow()
 	{
 		return e1.canThrow() || e2.canThrow();
 	}
@@ -1608,12 +1608,12 @@
 		return e;
 	}
 
-    int inlineCost(InlineCostState* ics)
+    override int inlineCost(InlineCostState* ics)
 	{
 		return 1 + e1.inlineCost(ics) + e2.inlineCost(ics);
 	}
 	
-    Expression doInline(InlineDoState ids)
+    override Expression doInline(InlineDoState ids)
 	{
 		BinExp be = cast(BinExp)copy();
 
@@ -1622,7 +1622,7 @@
 		return be;
 	}
 	
-    Expression inlineScan(InlineScanState* iss)
+    override Expression inlineScan(InlineScanState* iss)
 	{
 		e1 = e1.inlineScan(iss);
 		e2 = e2.inlineScan(iss);
@@ -1919,4 +1919,4 @@
 		buf.writestring(Str);				
 		buf.writestring("ass");				
 	}
-}
\ No newline at end of file
+}