style: move public members first in class declarations
- Reorder all class headers to put public interface before private members - Document convention in AGENTS.md
This commit is contained in:
@@ -44,6 +44,7 @@ to the custom scripts instead of system-installed packages.
|
||||
- `auto` for obvious types (e.g. `auto main(...) -> int`)
|
||||
- **East const** (e.g. `char const*` not `const char*`)
|
||||
- **Trailing return type** for all function definitions, including operators (e.g. `auto operator=(T&&) noexcept -> T&`)
|
||||
- **Public members first** in class declarations, private members at the bottom
|
||||
- `<>` includes only for system headers (std, OS, etc.)
|
||||
- `""` includes for third-party dependencies (e.g. `fmt`, `nlohmann/json`)
|
||||
- **Naming:** `snake_case` for variables, functions, and classes
|
||||
|
||||
Reference in New Issue
Block a user