Bug 137309
| Summary: | [webkitpy] check-webkit-style complains about inlined lambdas | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Zan Dobersek <zan> |
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | darin, svillar |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Zan Dobersek
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Darin Adler
Bug 153732 shows one of the many, many cases where the style checker gives false positives about this.
Darin Adler
*** This bug has been marked as a duplicate of bug 125616 ***