Closed Bug 1605934 Opened 4 years ago Closed 4 years ago

Use nested namespaces - new feature of C++17

Categories

(Developer Infrastructure :: Source Code Analysis, task)

task
Not set
normal

Tracking

(firefox74 fixed)

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: Sylvestre, Assigned: Sylvestre)

References

Details

Attachments

(2 files, 1 obsolete file)

This replaces

namespace mozilla {
namespace a11y {

by

namespace mozilla::a11y {

I run clang-format to replace the end of the namespace:

}  // namespace Telemetry
}  // namespace mozilla

by

}  // namespace mozilla::Telemetry

This is a new feature of C++17

Done with:
./mach static-analysis check --checks="-*, modernize-concat-nested-namespaces" --fix .
and then clang-format on the files

Attachment #9121705 - Attachment is obsolete: true

ok, thanks
I removed this file from the change

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
See Also: → 1610204

Landed!

Flags: needinfo?(sledru)
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0860e1962a65
Add nested namespaces in the C++ coding style r=sg
Type: enhancement → task
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: