check-webkit-style erroneously requires a space between the carrot and brace in obj...
authormegan_gardner@apple.com <megan_gardner@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Oct 2017 22:41:15 +0000 (22:41 +0000)
committermegan_gardner@apple.com <megan_gardner@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Oct 2017 22:41:15 +0000 (22:41 +0000)
commit933bb5d843e2c653bc6bcec8eef5df241c556f79
tree34fc8c00b475d53c53f000d629e6ad2ec2338e8d
parentb8075b56f1bba3eacce550d760a67d6cefefd2fd
check-webkit-style erroneously requires a space between the carrot and brace in obj-c blocks.
https://bugs.webkit.org/show_bug.cgi?id=177897

Reviewed by Dan Bernstein and Jonathan Bedard.

Remove the check for a space between ^ and {,
as this is valid and expected Obj-C. Now check to make sure there is
no space at all between ^ and {, and also that there is a space between
the end of an argument list and the {.

* Scripts/webkitpy/style/checkers/cpp.py:
(regex_for_lambdas_and_blocks):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222937 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/Scripts/webkitpy/style/checkers/cpp.py
Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py