[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55168] trunk/blender/source/tools/ check_style_c.py: Style checker: silents warnings with '++'/'--' operators starting a new line...

Bastien Montagne montagne29 at wanadoo.fr
Sun Mar 10 17:15:25 CET 2013


Revision: 55168
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55168
Author:   mont29
Date:     2013-03-10 16:15:25 +0000 (Sun, 10 Mar 2013)
Log Message:
-----------
Style checker: silents warnings with '++'/'--' operators starting a new line...

Modified Paths:
--------------
    trunk/blender/source/tools/check_style_c.py

Modified: trunk/blender/source/tools/check_style_c.py
===================================================================
--- trunk/blender/source/tools/check_style_c.py	2013-03-10 16:14:29 UTC (rev 55167)
+++ trunk/blender/source/tools/check_style_c.py	2013-03-10 16:15:25 UTC (rev 55168)
@@ -528,6 +528,10 @@
         pass  # *a = b
     elif len(op_text) == 1 and op_text[0] == "-" and tokens[index_start + 1].text.isspace() is False:
         pass  # -1
+    elif len(op_text) == 2 and op_text == "++" and tokens[index_start + 1].text.isspace() is False:
+        pass  # ++a
+    elif len(op_text) == 2 and op_text == "--" and tokens[index_start + 1].text.isspace() is False:
+        pass  # --a
     elif len(op_text) == 1 and op_text[0] == "&":
         # if (a &&
         #     &b)




More information about the Bf-blender-cvs mailing list