mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
doc: Update conventions
This commit is contained in:
parent
029fa2496e
commit
d37f54f179
|
@ -85,7 +85,6 @@ directed-acyclic-graph.
|
||||||
- Where a C API is exposed, it should follow the C API naming schemes.
|
- Where a C API is exposed, it should follow the C API naming schemes.
|
||||||
- If only a C++ API is exposed, a fairly conventional C++ naming scheme is used:
|
- If only a C++ API is exposed, a fairly conventional C++ naming scheme is used:
|
||||||
- Namespaces: nested to match directory structure, starting with `xrt::`.
|
- Namespaces: nested to match directory structure, starting with `xrt::`.
|
||||||
(Migration to this pattern is still in progress.)
|
|
||||||
- There are no C++ interfaces in the `xrt/include/xrt`, by design, so this
|
- There are no C++ interfaces in the `xrt/include/xrt`, by design, so this
|
||||||
is not ambiguous.
|
is not ambiguous.
|
||||||
- Place types that need to be exposed in a header for technical reasons,
|
- Place types that need to be exposed in a header for technical reasons,
|
||||||
|
@ -94,6 +93,7 @@ directed-acyclic-graph.
|
||||||
ecosystem.
|
ecosystem.
|
||||||
- Types/classes: `CamelCase`
|
- Types/classes: `CamelCase`
|
||||||
- Methods/functions: `lowerCamelCase`
|
- Methods/functions: `lowerCamelCase`
|
||||||
|
- Constants/constexpr values: `kCamelCase`
|
||||||
- If a header is only usable from C++ code, it should be named with the
|
- If a header is only usable from C++ code, it should be named with the
|
||||||
extension `.hpp` to signify this.
|
extension `.hpp` to signify this.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue