WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
161165
check-webkit-style doesn't understand macros containing `else` or labels
https://bugs.webkit.org/show_bug.cgi?id=161165
Summary
check-webkit-style doesn't understand macros containing `else` or labels
JF Bastien
Reported
2016-08-24 14:09:33 PDT
In the following patch:
https://bugs.webkit.org/show_bug.cgi?id=160921
check-webkit-style is unhappy with this idiom: #FOO() \ if (a) \ stmt; \ else \ stmt As well as with labels: #FOO() { \ label: \ stmt; \ } In both cases, check-webkit-style's regular expressions don't expect a backslash there, making it sad.
Attachments
patch
(2.67 KB, patch)
2016-08-25 12:25 PDT
,
JF Bastien
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews101 for mac-yosemite
(991.30 KB, application/zip)
2016-08-25 13:18 PDT
,
Build Bot
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
JF Bastien
Comment 1
2016-08-24 14:23:02 PDT
Errors were: ERROR: Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:1214: Else clause should never be on same line as else (use 2 lines) [whitespace/newline] [4] ERROR: Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:1215: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent]
JF Bastien
Comment 2
2016-08-25 12:25:58 PDT
Created
attachment 286995
[details]
patch Fixed else in a macro. I don't think fixing labels in a macro is as useful (the checker thinks it's looking at initializer lists at that point, and its regexes are already complex).
Geoffrey Garen
Comment 3
2016-08-25 12:29:19 PDT
Comment on
attachment 286995
[details]
patch r=me
Build Bot
Comment 4
2016-08-25 13:18:25 PDT
Comment on
attachment 286995
[details]
patch
Attachment 286995
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/1941456
New failing tests: imported/w3c/web-platform-tests/html/dom/interfaces.html
Build Bot
Comment 5
2016-08-25 13:18:28 PDT
Created
attachment 287000
[details]
Archive of layout-test-results from ews101 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-yosemite Platform: Mac OS X 10.10.5
JF Bastien
Comment 6
2016-08-25 13:24:37 PDT
Because I'm likely to forget: I ran the tests as follows PYTHONPATH=./Tools/Scripts/ python ./Tools/Scripts/webkitpy/test/main.py
WebKit Commit Bot
Comment 7
2016-08-29 12:38:29 PDT
Comment on
attachment 286995
[details]
patch Clearing flags on attachment: 286995 Committed
r205135
: <
http://trac.webkit.org/changeset/205135
>
WebKit Commit Bot
Comment 8
2016-08-29 12:38:33 PDT
All reviewed patches have been landed. Closing bug.
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