Bug 137309

Summary: [webkitpy] check-webkit-style complains about inlined lambdas
Product: WebKit Reporter: Zan Dobersek <zan>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: darin, svillar
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Zan Dobersek 2014-10-01 13:45:06 PDT
An example that causes a warning when checking style compliance:

    return std::any_of(m_children.begin(), m_children.end(),
        [](TextureMapperLayer* child) {
            return child->descendantsOrSelfHaveRunningAnimations();
        });

The style checker does not expect the starting curly brace to be on the first line -- it expects it on the second one instead.

It should be noted that inlined lambdas are already mostly written with the starting curly brace on the same line as the lambda parameters.
Comment 1 Darin Adler 2016-01-31 20:35:23 PST
Bug 153732 shows one of the many, many cases where the style checker gives false positives about this.
Comment 2 Darin Adler 2016-01-31 20:36:05 PST

*** This bug has been marked as a duplicate of bug 125616 ***