Bug 137309 - [webkitpy] check-webkit-style complains about inlined lambdas
Summary: [webkitpy] check-webkit-style complains about inlined lambdas
Status: RESOLVED DUPLICATE of bug 125616
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: 2014-10-01 13:45 PDT by Zan Dobersek
Modified: 2016-01-31 20:36 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***