Bug 80018
Summary: | check-webkit-style should not complaint about '{' at the beginning of a code block | ||
---|---|---|---|
Product: | WebKit | Reporter: | Robin Cao <robin.webkit> |
Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
Status: | UNCONFIRMED | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Robin Cao
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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |