RESOLVED DUPLICATE of bug 125616 137309
[webkitpy] check-webkit-style complains about inlined lambdas
https://bugs.webkit.org/show_bug.cgi?id=137309
Summary [webkitpy] check-webkit-style complains about inlined lambdas
Zan Dobersek
Reported 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.
Attachments
Darin Adler
Comment 1 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.
Darin Adler
Comment 2 2016-01-31 20:36:05 PST
*** This bug has been marked as a duplicate of bug 125616 ***
Note You need to log in before you can comment on or make changes to this bug.