Style Guides#
- Coding Style Guide
- Language standard
- Coding Guidelines
- Common
- C++
- Use C++ cstdint for Plain Old Data Types
- Avoid top-level
using namespace
Statements in Headers - Classes / objects not exposed in a header should be in an anonymous namespace
- Singleton use
- Avoid Heap-based Resource Allocation and auto-resizing std containers
- Prefer CopySpanToMutableSpan over memcpy when using spans
- Prefer std::optional to CHIP implementation in newer code
- Python
- CHIP Makefile Style Guide
- Matter Documentation Style Guide