Closed Bug 1631684 Opened 4 years ago Closed 4 years ago

Replace MOZ_MUST_USE with [[nodiscard]] in dom/indexedDB

Categories

(Core :: Storage: IndexedDB, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: cpeterson, Assigned: cpeterson)

References

Details

Attachments

(1 file)

The MOZ_MUST_USE macro is defined as clang's and gcc's nonstandard attribute((warn_unused_result)). Now that we compile as C++17 by default (bug 1560664), we can replace MOZ_MUST_USE with C++17's standard [[nodiscard]] attribute.

Also move MOZ_MUST_USE before function declarations' specifiers and return type. While clang and gcc's attribute((warn_unused_result)) can appear before, between, or after function specifiers and return types, the [[nodiscard]] attribute must precede the function specifiers.

Also move MOZ_MUST_USE before function declarations' specifiers and return type. While clang and gcc's attribute((warn_unused_result)) can appear before, between, or after function specifiers and return types, the [[nodiscard]] attribute must precede the function specifiers.

Attachment #9141962 - Attachment description: Bug 1631684 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/indexedDB. r?#dom-workers-and-storage-reviewers → Bug 1631684 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/indexedDB. r=sg
Pushed by cpeterson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6bbecc3020b7
Replace MOZ_MUST_USE with [[nodiscard]] in dom/indexedDB. r=dom-workers-and-storage-reviewers,sg
Pushed by dluca@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d8eecc663784
acked out changeset 6bbecc3020b7 for build bustage in bindings/IDBObjectStoreBinding.cpp. CLOSED TREE

Backed out changeset 6bbecc3020b7 (bug 1631684) for build bustage in bindings/IDBObjectStoreBinding.cpp. CLOSED TREE

Log:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=298774040&repo=autoland&lineNumber=22784

Push with backout:
https://treeherder.mozilla.org/#/jobs?repo=autoland&group_state=expanded&resultStatus=testfailed%2Cbusted%2Cexception&classifiedState=unclassified&revision=6bbecc3020b7a4787559a5b1d167df46d59d232a&selectedJob=298774040

Backout:
https://hg.mozilla.org/integration/autoland/rev/d8eecc663784c8463af1d2bc3f91f8078c7e1940

Chris: Can you please open the revision on phabricator? I deleted the b from backout in the commit message and the system didn't opened it automatically because of that.

Flags: needinfo?(cpeterson)

(In reply to Dorel Luca [:dluca] from comment #4)

Chris: Can you please open the revision on phabricator? I deleted the b from backout in the commit message and the system didn't opened it automatically because of that.

Sure. I reopened revision:
https://phabricator.services.mozilla.com/D71713#2186118

The build broke after a bad merge conflict resolution. I'll double-check the build on Try before re-landing.

Flags: needinfo?(cpeterson)
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
Pushed by cpeterson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2d3187f93185
Replace MOZ_MUST_USE with [[nodiscard]] in dom/indexedDB. r=dom-workers-and-storage-reviewers,sg
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: