[Webkit-unassigned] [Bug 34173] style tool: Improve treatment of conditions and rest of the line for if, else, switch and alikes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 27 11:53:25 PST 2010


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





--- Comment #11 from anton muhin <antonm at chromium.org>  2010-01-27 11:53:24 PST ---
(In reply to comment #8)
> (In reply to comment #4)
> > (In reply to comment #2) 
> > > Also, if you haven't done yet, please run your modified style checker for a
> > > bunch of code and check if there are no false alarms.
> > 
> > How can I do it?  Running against full source tree seems kind of useless---too
> > difficult to say noise from real problems?  Is there some other approach?
> 
> Personally when I do a change of this sort, 
> 1. I run it against a lot of WebKit code (WebCore and JavaScriptCore). 
> 2. If there are warnings, I'll randomly check around 5 of them to ensure that
> they are real warnings.
> 3. If any warnings are false positives, then the checker should be fixed and
> this process repeated (go to step 1).
> It may seem like a bit of overhead but it is worse to accidently flag correct
> code and then have to deal with people's frustration with that.

Thanks a lot, David.  So I ran it through all the sources and inspected several
warnings, most of them are correct, but I still decided to allow lines
terminating with \ as multiline macros are too painful to write.  And \ are
kind of legitime C code.

Spotted a nice case of macro to inline function conversion which kept \ at the
end :)

-- 
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