aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2026-03-04 12:34:44 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2026-03-04 12:34:44 +0100
commit10eb2454a21e9b1f1bd675eed799cb89a7518fa8 (patch)
treee2ea71280f5a8ba5e8dacbbccf680a8f56313e4d
parentefd14c278c72674fc58cfde2f9023450a755c604 (diff)
downloadlanes-10eb2454a21e9b1f1bd675eed799cb89a7518fa8.tar.gz
lanes-10eb2454a21e9b1f1bd675eed799cb89a7518fa8.tar.bz2
lanes-10eb2454a21e9b1f1bd675eed799cb89a7518fa8.zip
Tweak CLAUDE.md
-rw-r--r--CLAUDE.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/CLAUDE.md b/CLAUDE.md
index d8e1655..4330e7d 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -129,6 +129,8 @@ From `lanesconf.h` (authoritative source):
129 129
130Registry keys use xxh64 hashes (generated at https://www.pelock.com/products/hash-calculator) to prevent name collisions across modules. 130Registry 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.