Capitalize template parameters for data structure used in layout and gfx
Categories
(Core :: Layout, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox102 | --- | fixed |
People
(Reporter: TYLin, Assigned: rzvncj, Mentored)
References
Details
(Keywords: good-first-bug)
Attachments
(1 file)
According to https://google.github.io/styleguide/cppguide.html#Type_Names,
The names of all types — classes, structs, type aliases, enums, and type template parameters — have the same naming convention. Type names should start with a capital letter and have a capital letter for each new word. No underscores.
So we should adapt this naming convention for the template parameters of data structure used in layout and gfx. To name a few here:
https://searchfox.org/mozilla-central/rev/7bafa9b9c2156018ec1d410194f9bf4b5b23e77f/gfx/2d/Coord.h#88,103
https://searchfox.org/mozilla-central/rev/7bafa9b9c2156018ec1d410194f9bf4b5b23e77f/gfx/2d/Point.h#72
Comment 1•3 years ago
|
||
Let's make this a mentored bug, it can be a good introduction to the contribution process for someone
Assignee | ||
Comment 2•3 years ago
|
||
Do you mean all headers (*.h
files) in gfx/
and layout/
? Or are there specific ones you could maybe point out that you know suffer from this problem?
Comment 3•3 years ago
|
||
I think what we had in mind for this is mostly the headers in gfx/2d
(especially class units
, class coord
, class primitive
), and layout/base/Units.h
(has a lot of class src
, class dst
).
Assignee | ||
Comment 4•3 years ago
|
||
Modified headers:
gfx/2d/{Coord.h,Point.h,Rect.h}
layout/base/Units.h
Updated•3 years ago
|
Description
•