Bug 86417

Summary: check-webkit-style complains about anonymous blocks in C code
Product: WebKit Reporter: Andy Estes <aestes>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: eric
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

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.