Closed Bug 2031589 Opened 2 months ago Closed 2 months ago

Update coding style guide's list of C++ features now allowed with C++20

Categories

(Core :: General, task)

task

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: cpeterson, Assigned: cpeterson)

References

Details

Attachments

(2 files)

No description provided.
Depends on: C++20
  • Default member-initializers for bit fields are now supported in C++20.

  • [[attributes]] have been used for a while now.

  • std::thread_local is allowed now that Firefox Android's minimum
    Android version is 8 (bug 1978592).

  • Concepts are supported in C++20.

  • constexpr lambdas have been supported since C++17.

  • Designated initializers are supported in C++20.

  • std::format (C++20) is not fully supported in GCC libstdc++ until GCC
    13. Use the fmt/format.h library instead.

  • Coroutines aren't allowed because Clang doesn't support them on
    Windows.

Attachment #9569628 - Attachment description: Bug 2031589 - Update coding style guide's list of C++ features now allowed with C++20. r?#firefox-source-docs-reviewers,nika → Bug 2031589 - Update coding style guide's list of C++ features now allowed with C++20. r?#firefox-build-docs-reviewers,nika
Attachment #9569629 - Attachment description: Bug 2031589 - Fix formatting of the coding style guide's Algorithms table. r?#firefox-source-docs-reviewers → Bug 2031589 - Fix formatting of the coding style guide's Algorithms table. r?#firefox-build-docs-reviewers
Pushed by cpeterson@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/cd81caf08035 https://hg.mozilla.org/integration/autoland/rev/5f6524f547a6 Update coding style guide's list of C++ features now allowed with C++20. r=nika,firefox-build-system-reviewers,glandium https://github.com/mozilla-firefox/firefox/commit/6a365bf36bdb https://hg.mozilla.org/integration/autoland/rev/a496587c6a44 Fix formatting of the coding style guide's Algorithms table. r=firefox-build-system-reviewers,glandium
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
See Also: → 2033985
QA Whiteboard: [qa-triage-done-c152/b151]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: