Open Bug 2064513 Opened 3 months ago Updated 18 hours ago

replace goto FAIL pattern with mozilla::ScopeExit

Categories

(MailNews Core :: Backend, task, P3)

task
Points:
3

Tracking

(Not tracked)

ASSIGNED
163 Branch

People

(Reporter: jtracey, Assigned: grubbke)

Details

(Keywords: good-first-bug, leave-open)

Attachments

(1 external file)

Some of the older C++ code uses the goto FAIL pattern, which can be bug-prone. It's slowly been getting replaced with mozilla::ScopeExit as it's been touched, but it would also be fine to have dedicated patches for making that conversion.

New contributors who want to help with this should just find a C++ file in comm that uses the goto FAIL pattern (i.e., any sort of goto early return cleanup) and submit a patch replacing all the instances of it with an appropriately configured mozilla::ScopeExit.

Assignee: nobody → grubbke
Status: NEW → ASSIGNED
Assignee: grubbke → nobody
Status: ASSIGNED → NEW
Keywords: leave-open
Assignee: nobody → grubbke
Status: NEW → ASSIGNED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: