diff --git a/AGENTS.md b/AGENTS.md index 364dec1..8dae874 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -112,6 +112,13 @@ Run TSAN on an x86-64 host (or a 4K-page AArch64). TSAN cannot initialise on a - All atomics and fences go through the `seqlock_conf.h` macros so the backend (`__atomic`, C11, or uniprocessor fallback) stays swappable. +### Comment placement (Doxygen) + +- Inline trailing annotations (`/**< ... */`) on `enum`/`struct` members are allowed only when the resulting line fits the 80-column limit. +- If any member's annotation would overrun, move **all** of that aggregate's member docs into a single structured Doxygen block above the type, as an `@details` list of `- ::SYMBOL description` entries. +- Never mix inline and block forms within one aggregate, and never leave a trailing comment that clang-format would wrap onto a second line. +- After editing, verify with a `clang-format --style=file` no-reformat diff and an 80-column scan. + ### Testing - Run `meson test -C build` after changes; also run the TSAN build for any