Reorder includes in gmp-clearkey
Categories
(Core :: Audio/Video: GMP, task, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox93 | --- | fixed |
People
(Reporter: bryce, Assigned: bryce)
Details
Attachments
(1 file)
Reorder the includes in the clearkey CDM to conform to https://google.github.io/styleguide/cppguide.html#Names_and_Order_of_Includes
| Assignee | ||
Comment 1•4 years ago
|
||
If we consider clearkey and the psshparser separate projects from one another and gecko will alter include order. For the purpose of this work I'm going to treat them all as one project.
| Assignee | ||
Comment 2•4 years ago
|
||
However it makes sense to me to treat nss and the CDM headers as other projects for the purpose of ordering. Both live outside mozilla-central/mozilla-unified.
| Assignee | ||
Comment 3•4 years ago
|
||
Reorder includes to match Google C++ style. The follow decisions were made to
resolve ambiguities.
- The pssh parser and clearkey are considered part of mozilla-central/Gecko and
so have their includes grouped into the 'your project' includes at the end of
includes. I.e. they're grouped with other mozilla-central headers. - NSS and the CDM headers are considered as coming from other libs, so are
placed in a block preceding the mozilla-central's.
I think everything else is decided by using the style guide and by Mozilla using
case sensitive sorting.
This also changes a few instances of using "systemheader.h" to <systemheader.h>,
which is more in line with the style guide.
Comment 5•4 years ago
|
||
| bugherder | ||
Description
•