Closed Bug 1654181 Opened 5 years ago Closed 5 years ago

[ipdl] Make generation of operator==/!= optional for structs/unions

Categories

(Core :: IPC, task)

task

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: sg, Assigned: sg)

References

Details

Attachments

(1 file)

Currently, the code generator generates operator==/operator!=for all IPDL-defined structs and unions, based on the operators of the field types, requiring all field types to provide such operators, even if they are never used. To remove the need to write such unnecessary code in user-defined types (and also to remove the need for the compiler to parse the unnecessary operators), it should be optional to generate these operators. For now, the default should stay to generate them, so that existing IPDL files do not need to be adapted.

Blocks: 1654469
Pushed by sgiesecke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5b83b6bf401f Add uncomparable keyword for structs and unions. r=nika
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
Regressions: 1654749
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: