Open Bug 1571631 Opened 3 months ago Updated 3 months ago

Replace MOZ_MUST_USE macro with C++17 attribute [[nodiscard]]

Categories

(Core :: MFBT, task)

task
Not set

Tracking

()

People

(Reporter: TYLin, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

After we build as C++17 by default, we can replace MOZ_MUST_USE with C++17 [[nodiscard]].

https://en.cppreference.com/w/cpp/language/attributes/nodiscard

You need to log in before you can comment on or make changes to this bug.