[Webkit-unassigned] [Bug 30021] check-webkit-style does not detect missing spaces around &=, |=, -=, and +=

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 2 14:55:29 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=30021


Carol Szabo <carol.szabo at nokia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #40548|                            |review?
               Flag|                            |
  Attachment #40536|0                           |1
        is obsolete|                            |




--- Comment #3 from Carol Szabo <carol.szabo at nokia.com>  2009-10-02 14:55:28 PDT ---
Created an attachment (id=40548)
 --> (https://bugs.webkit.org/attachment.cgi?id=40548)
Proposed patch

Added some unit tests, but I think the best test is the fact that over the
entire existing WebKit codebase, there is no change in the output of the tool
introduced by my changes.
This means that at least my change is very unlikely to hide common errors that
were previously detected and very unlikely to introduce a lot of annoying false
errors.
My recorded unit tests as well as running the tool on my own patches proves
that it finds a few things that were  not found before.
By the way, I noticed that check-webkit-style is intentionally coded to allow
constructs such as a = 3<<4; This exception from the normal "binary operator
rule" is not mentioned in the coding styles webpage or I have missed it
(http://webkit.org/coding/coding-style.html). Also, another exception is if
((a=b) != c) construction where a comment in the check-webkit-style file says
that there must NOT be spaces around = inside if. This exception is not
mentioned in the guidelines either.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list