layout/base/nsFrameTraversal.cpp: do not use 'else' after 'break'
Categories
(Core :: Layout, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox91 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: jaygala260)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=C++])
Attachments
(1 file, 4 external files, 1 obsolete file)
+++ This bug was initially created as a clone of Bug #1713520 +++
Filling as a good first bug to learn workflows.
do not use 'else' after 'break':
https://searchfox.org/mozilla-central/source/layout/base/nsFrameTraversal.cpp#257-261
As the change is trivial, it is just to learn how to contribute to Firefox.
Found by http://clang.llvm.org/extra/clang-tidy/checks/readability-else-after-return.html
Tutorial to contribute:
https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
https://firefox-source-docs.mozilla.org/contributing/stack_quickref.html
Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.
| Reporter | ||
Comment 1•5 years ago
|
||
and please fix also:
https://searchfox.org/mozilla-central/rev/5977b6fdebe32451ada35fa2cbd7c0752cfea982/layout/base/nsFrameTraversal.cpp#306-310
(same same)
| Reporter | ||
Updated•5 years ago
|
| Assignee | ||
Comment 2•5 years ago
|
||
Working on this
| Assignee | ||
Comment 3•5 years ago
|
||
Removed else after break
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 4•5 years ago
|
||
There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:jaygala260, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•5 years ago
|
Comment 5•5 years ago
|
||
Updated author information with bugzilla nick and email. Hit bug 1718540 in the process.
Comment 7•5 years ago
|
||
Comment 8•5 years ago
|
||
Comment on attachment 9229194 [details]
Bug 1713521 - Deal with empty diff_commits in submit. r=zeid,glob
Revision D118922 was moved to bug 1718540. Setting attachment 9229194 [details] to obsolete.
Comment 9•5 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 10•5 years ago
|
||
Bug 1713521: Removed 'else' after 'break' from lines 257-261
| Reporter | ||
Comment 11•5 years ago
|
||
jaygala260 : this bug was fixed two months ;)
| Assignee | ||
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
Comment on attachment 9237902 [details]
Bug 1713521 - removed 'else' after 'break' at lines 257-261. r?emilio
Revision D123590 was moved to bug 1727562. Setting attachment 9237902 [details] to obsolete.
Updated•5 years ago
|
| Assignee | ||
Comment 14•5 years ago
|
||
| Assignee | ||
Comment 15•5 years ago
|
||
ran mach clang-format -p layout/base/nsFrameTraversal.cpp and ./mach lint --warnings --outgoing, 0 errors were found
Depends on D123648
Description
•