diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2026-03-04 12:34:44 +0100 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2026-03-04 12:34:44 +0100 |
| commit | 10eb2454a21e9b1f1bd675eed799cb89a7518fa8 (patch) | |
| tree | e2ea71280f5a8ba5e8dacbbccf680a8f56313e4d | |
| parent | efd14c278c72674fc58cfde2f9023450a755c604 (diff) | |
| download | lanes-10eb2454a21e9b1f1bd675eed799cb89a7518fa8.tar.gz lanes-10eb2454a21e9b1f1bd675eed799cb89a7518fa8.tar.bz2 lanes-10eb2454a21e9b1f1bd675eed799cb89a7518fa8.zip | |
Tweak CLAUDE.md
| -rw-r--r-- | CLAUDE.md | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -129,6 +129,8 @@ From `lanesconf.h` (authoritative source): | |||
| 129 | 129 | ||
| 130 | Registry keys use xxh64 hashes (generated at https://www.pelock.com/products/hash-calculator) to prevent name collisions across modules. | 130 | Registry keys use xxh64 hashes (generated at https://www.pelock.com/products/hash-calculator) to prevent name collisions across modules. |
| 131 | 131 | ||
| 132 | `DECLARE_UNIQUE_TYPE(Name, BaseType)` creates strong typedefs to prevent accidental implicit conversions (e.g., `KeeperIndex`, `StackIndex`, `DestState`). | 132 | `DECLARE_UNIQUE_TYPE(Name, BaseType)` creates strong typedefs to prevent accidental implicit conversions (e.g., `KeeperIndex`, `DestState`). |
| 133 | 133 | ||
| 134 | `[[nodiscard]]` is used extensively on return values that must be checked. | 134 | `DECLARE_UNIQUE_ARITHMETIC_TYPE(Name, BaseType)` does the same but additionally enables arithmetic operators (`++`, `--`, etc.) via the `kUniqueIsArithmetic<TAG>` trait specialization. Use this for index/counter types that need increment/decrement (e.g., `StackIndex`, `TableIndex`, `UserValueIndex`). |
| 135 | |||
| 136 | `[[nodiscard]]` is used extensively on return values that must be checked. Style-wise, it is placed on its own line before function signatures. | ||
