Closed
Bug 1366021
Opened 8 years ago
Closed 8 years ago
Do not use 'else' after 'return' in /js/src/frontend/Parser.cpp
Categories
(Core :: JavaScript Engine: JIT, enhancement)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: janx, Assigned: janx)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
janx
:
review+
|
Details | Diff | Splinter Review |
When running static analysis on /js/src/jit/x86-shared/Disassembler-x86-shared.cpp with the following command:
$ run-clang-tidy-4.0.py -j 18 -p obj-x86_64-pc-linux-gnu/ -checks=-*,clang-analyzer-deadcode.DeadStores js/src/jit/x86-shared/
We get the following warning:
/home/user/firefox/js/src/frontend/Parser.cpp:1495:11: warning: do not use 'else' after 'return' [readability-else-after-return]
} else {
^
Assignee | ||
Comment 1•8 years ago
|
||
Attachment #8869120 -
Flags: review?(bbouvier)
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → janx
Comment 2•8 years ago
|
||
Comment on attachment 8869120 [details] [diff] [review]
Readability: Do not use 'else' after 'return' in /js/src/frontend/Parser.cpp.
Review of attachment 8869120 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks!
Can you remove "readability" from the changeset message and make sure that try tests (jsreftests + jittests) pass, please?
Attachment #8869120 -
Flags: review?(bbouvier) → review+
Assignee | ||
Comment 3•8 years ago
|
||
Updated commit message, rebased, r+ carried over, try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=2b53eb1bcf42
Attachment #8869734 -
Flags: review+
Assignee | ||
Updated•8 years ago
|
Attachment #8869120 -
Attachment is obsolete: true
Assignee | ||
Comment 4•8 years ago
|
||
The assertion failures in /src/ld/ld.hpp on "OS X 10.7 opt" seem unrelated (see orange try jobs "cgc" and "p"). Please land this patch.
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/8fa35ea59bdd
Do not use 'else' after 'return' in /js/src/frontend/Parser.cpp. r=bbouvier
Keywords: checkin-needed
Comment 6•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Comment 7•8 years ago
|
||
https://hg.mozilla.org/projects/cedar/rev/8fa35ea59bdd416eadfec7def8e9c29222d908cc
Bug 1366021 - Do not use 'else' after 'return' in /js/src/frontend/Parser.cpp. r=bbouvier
Assignee | ||
Updated•7 years ago
|
Depends on: clang-based-analysis
Assignee | ||
Updated•7 years ago
|
Blocks: clang-based-analysis
No longer depends on: clang-based-analysis
You need to log in
before you can comment on or make changes to this bug.
Description
•