[Webkit-unassigned] [Bug 35717] New: check-webkit-style: false positive for empty loop

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 3 22:01:56 PST 2010


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

           Summary: check-webkit-style: false positive for empty loop
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: hamaji at chromium.org


For loops like "for (...) {}", check-webkit-style thinks the opened brace isn't
closed and produces a false alarm for the close brace in two lines below.

void foo()
{
    for (int i = 0; i < 100; i++) { }
    return;
}  // check-webkit-style thinks this close brace corresponds to the open brace
after "for (...)" .

test.cpp:5:  One line control clauses should not use braces. 
[whitespace/braces] [4]
Total errors found: 1 in 1 files

See Bug 35557 for a real example.

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