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:
2026-05-05 22:30:56 +02:00
parent e71c4d55cf
commit b6adb7c23a
8 changed files with 34 additions and 26 deletions
+1
View File
@@ -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