WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
173859
check-webkit-style complains "multi-line control clauses should use brace" for single line if-statement followed by line with 8 space characters
https://bugs.webkit.org/show_bug.cgi?id=173859
Summary
check-webkit-style complains "multi-line control clauses should use brace" fo...
John Wilander
Reported
2017-06-26 20:32:07 PDT
This code ... if (sorted.size() < minimum) return { }; ... results in this checker error: Multi line control clauses should use braces. [whitespace/braces] [4]
Attachments
Add attachment
proposed patch, testcase, etc.
John Wilander
Comment 1
2017-06-27 09:57:36 PDT
I found out why it was complaining. Xcode had indented eight characters, like so: if (sorted.size() < minimum) return { }; // Eight space chars here confuses the checker.
Daniel Bates
Comment 2
2017-09-05 16:01:45 PDT
I hit this bug with
attachment #319945
[details]
(
bug #176388
).
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug