Bug 86417 - check-webkit-style complains about anonymous blocks in C code
Summary: check-webkit-style complains about anonymous blocks in C code
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-14 17:27 PDT by Andy Estes
Modified: 2012-05-14 17:30 PDT (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 Andy Estes 2012-05-14 17:27:21 PDT
When using an anonymous block in C code, such as:

dispatch_async(queue, ^{
    // anonymous block
});

check-webkit-style complains:

"Missing space before {  [whitespace/braces] [5]"

As far as I know our style guide doesn't cover blocks specifically, but this is a common style and should probably be allowed.
Comment 1 Andy Estes 2012-05-14 17:28:09 PDT
The patch in <https://bugs.webkit.org/show_bug.cgi?id=86411> has an example of such a block.