Open
Bug 1676590
Opened 5 years ago
Updated 3 years ago
Have a naming convention for forwarding headers
Categories
(Developer Infrastructure :: Source Code Analysis, task, P3)
Developer Infrastructure
Source Code Analysis
Tracking
(Not tracked)
NEW
People
(Reporter: sg, Unassigned)
References
Details
To make it easier to identify which headers are forwarding headers, i.e. which contain only forward declarations to types defined elsewhere, we should have and comply with a naming convention for such files.
At the moment, there are at least three different variants, leading to the following files, e.g.:
- https://searchfox.org/mozilla-central/search?q=Fwd.h&path=&case=false®exp=false
- https://searchfox.org/mozilla-central/search?q=ForwardDeclare.h&path=&case=false®exp=false
https://searchfox.org/mozilla-central/search?q=TypeDecls&path=&case=false®exp=false
Among these, the Fwd suffix is most widespread, and is also in line with the suffix used in the standard library by the <iosfwd> header. It would still be good to codify this in https://searchfox.org/mozilla-central/source/docs/code-quality/coding-style/coding_style_cpp.rst
| Reporter | ||
Comment 1•5 years ago
|
||
The generated domstubs.h header is also a forwarding header.
Updated•5 years ago
|
Priority: -- → P3
Updated•3 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•