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)

enhancement
Not set
normal

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)

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 { ^
Attachment #8869120 - Flags: review?(bbouvier)
Assignee: nobody → janx
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+
Updated commit message, rebased, r+ carried over, try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=2b53eb1bcf42
Attachment #8869734 - Flags: review+
Attachment #8869120 - Attachment is obsolete: true
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
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
https://hg.mozilla.org/projects/cedar/rev/8fa35ea59bdd416eadfec7def8e9c29222d908cc Bug 1366021 - Do not use 'else' after 'return' in /js/src/frontend/Parser.cpp. r=bbouvier
No longer depends on: clang-based-analysis
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: