[Webkit-unassigned] [Bug 123406] check-webkit-style should support C++11 rvalue references

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 20 09:31:18 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=123406


Brent Fulgham <bfulgham at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #217418|review?                     |review-
               Flag|                            |




--- Comment #5 from Brent Fulgham <bfulgham at webkit.org>  2013-11-20 09:29:51 PST ---
(From update of attachment 217418)
View in context: https://bugs.webkit.org/attachment.cgi?id=217418&action=review

A good start, but I think your logic in the "check_style" change is flawed. I think you allow rvalue references now at the cost of ignoring boolean expressions crossing multiple lines.  Please add a test for the multiple-line case and fix the logic for identifying rvalue references.

> Tools/Scripts/webkitpy/style/checkers/cpp.py:2626
> +    if cleansed_line.strip().endswith('||') or cleansed_line.strip().endswith(' &&'):

Won't strip() remove all the whitespace?  Will we ever match ' &&'?

> Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py:629
> +        self.assert_lint('T&&', '')

We also need a test that shows that we catch instances of boolean expressions spanning multiple lines.  I believe that your change will break that style check. You can prove me wrong by including a test case!  :-)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list