Other C++ Conventions
Open
@ryanmrichard is already working on this.
Since Oct 7, 2021.
documentation
- Dominant language
- Dockerfile
- Stars
- 1
- Forks
- 2
- Avg merge
- 22m
- Merged PRs (30d)
- 4
Description
We have a list of C++ coding conventions here, but there's other aspects of the C++ source code design which should be standardized. I'm starting this issue to keep track of such things.
- use of
_tand_typesuffixes for typedefs - decide whether to use
_as prefix or suffix on protected/private members - use
m_prefix for members - insist on out-of-line definitions for functions that are longer than one line
- put out-of-line definitions to be
inline'd in.ippfiles - names of polymorphic copy and comparisons
- how to reference types from dependencies
- some of our repos define a header
types.hppdo we want to standardize it?
- some of our repos define a header
- directory structures?
- when to use nested namespaces
- where to put traits
- when to start new files
This should be compared with the C++ Core Guidelines for consistency.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.