[Webkit-unassigned] [Bug 173859] New: Style checker confused about single line control clauses with 'return { }; '

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 26 20:32:07 PDT 2017


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

            Bug ID: 173859
           Summary: Style checker confused about single line control
                    clauses with 'return { };'
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: wilander at apple.com
                CC: lforschler at apple.com

This code ...

if (sorted.size() < minimum)
    return { };

... results in this checker error:

Multi line control clauses should use braces.  [whitespace/braces] [4]

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170627/c7562445/attachment.html>


More information about the webkit-unassigned mailing list