Bug 181441 - check-webkit-style mishandles bracket syntax used in initializer lists
Summary: check-webkit-style mishandles bracket syntax used in initializer lists
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-09 10:26 PST by Brady Eidson
Modified: 2018-01-09 10:26 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brady Eidson 2018-01-09 10:26:57 PST
check-webkit-style mishandles bracket syntax used in initializer lists

For an e.g. look at this patch: https://bugs.webkit.org/attachment.cgi?id=330829&action=prettypatch


UIMessageChannel::UIMessageChannel(const MessagePortIdentifier& port1, const MessagePortIdentifier& port2)
    : m_identifiers { port1, port2 }
    , m_processes { port1.processIdentifier, port2.processIdentifier }
{
...
}

It incorrectly identifies the initialization of the m_processes member as the constructor function body.