[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 23:07:00 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=123406
--- Comment #6 from László Langó <lango at inf.u-szeged.hu> 2013-11-20 23:05:32 PST ---
(In reply to comment #5)
> (From update of attachment 217418 [details])
> 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! :-)
stip() method only remove the leading end trailing whitespaces. It won't remove the whitespace before '&&'. Just to be sure a i checked it before i uploaded the patch. End already exists a test that check the multiline conditions (last assert in 'test_brace_at_begin_of_line').
--
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