Closed
Bug 2015410
Opened 2 months ago
Closed 2 months ago
Fix clang-tidy warnings in js/src/builtin/intl and js/src/builtin/temporal
Categories
(Core :: JavaScript: Internationalization API, task, P3)
Core
JavaScript: Internationalization API
Tracking
()
RESOLVED
FIXED
149 Branch
| Tracking | Status | |
|---|---|---|
| firefox149 | --- | fixed |
People
(Reporter: anba, Assigned: anba)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
Bug 2015410 - Part 2: Fix clang-tidy warnings in js/src/builtin/temporal. r=#spidermonkey-reviewers!
48 bytes,
text/x-phabricator-request
|
Details | Review |
clang-tidy currently doesn't work correctly (bug 2015386), so some warnings went unnoticed, because Phabricator didn't nag about them.
| Assignee | ||
Comment 1•2 months ago
|
||
Fixes various clang-tidy warnings, like:
autoinstead ofauto.- Unnecessary explicit initialisation of class members.
- Missing default initialisation of class members.
length() == 0instead ofempty()tests.- Missing explicit casts to narrow int types.
- Missing
defaultcase inswitchstatements. boolreturn statements which can be simplified.
| Assignee | ||
Comment 2•2 months ago
|
||
Also fix clang-tidy warnings in "js/src/builtin/temporal".
Pushed by andre.bargull@gmail.com:
https://github.com/mozilla-firefox/firefox/commit/9d0bbd803fcd
https://hg.mozilla.org/integration/autoland/rev/5cbb2a99ece8
Part 1: Fix clang-tidy warnings in js/src/builtin/intl. r=spidermonkey-reviewers,arai
https://github.com/mozilla-firefox/firefox/commit/1f9af96e8664
https://hg.mozilla.org/integration/autoland/rev/c631abac212f
Part 2: Fix clang-tidy warnings in js/src/builtin/temporal. r=spidermonkey-reviewers,arai
Pushed by sstanca@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/f42dce2a0f52
https://hg.mozilla.org/integration/autoland/rev/d270382b770b
Revert "Bug 2015410 - Part 2: Fix clang-tidy warnings in js/src/builtin/temporal. r=spidermonkey-reviewers,arai" for causing Calendar.cpp related failures.
Comment 5•2 months ago
|
||
Backed out for causing failures in Calendar.cpp
Backout Link
Push with failures
Failure Log
Failure line Assertion failure: 1 <= months && months <= CalendarMonthsPerYear(calendarId), at /builds/worker/checkouts/gecko/js/src/builtin/temporal/Calendar.cpp:X
Flags: needinfo?(andrebargull)
| Assignee | ||
Comment 6•2 months ago
|
||
Thanks. There was a simple oversight in a new assertion.
Flags: needinfo?(andrebargull)
Updated•2 months ago
|
Pushed by andre.bargull@gmail.com:
https://github.com/mozilla-firefox/firefox/commit/117395f1d500
https://hg.mozilla.org/integration/autoland/rev/296c3299cf8a
Part 1: Fix clang-tidy warnings in js/src/builtin/intl. r=spidermonkey-reviewers,arai
https://github.com/mozilla-firefox/firefox/commit/2501809f40da
https://hg.mozilla.org/integration/autoland/rev/5034f0e96917
Part 2: Fix clang-tidy warnings in js/src/builtin/temporal. r=spidermonkey-reviewers,arai
Comment 8•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/296c3299cf8a
https://hg.mozilla.org/mozilla-central/rev/5034f0e96917
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
status-firefox149:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
Updated•1 month ago
|
QA Whiteboard: [qa-triage-done-c150/b149]
You need to log in
before you can comment on or make changes to this bug.
Description
•