Bug 80018 - check-webkit-style should not complaint about '{' at the beginning of a code block
Summary: check-webkit-style should not complaint about '{' at the beginning of a code ...
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-01 03:41 PST by Robin Cao
Modified: 2012-03-01 03:41 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Cao 2012-03-01 03:41:53 PST
From patch https://bugs.webkit.org/attachment.cgi?id=129676, check-webkit-style complained about the following:
    if (condition) {
        {
            MutexLocker locker(m_mutex);
            doSomeThings();
        }
        doOtherThings();
    }

Source/WebCore/platform/graphics/blackberry/LayerTiler.cpp:160:  This { should be at the end of the previous line  [whitespace/braces] [4]

This is a false positive.
The second '{' is used to scope the MutexLocker, it should not be at the end of the previous line.