From b64bfd6b45d752d9afcb6d86b06f6eaaf2d798fc Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 19 Aug 2026 09:45:14 +0100 Subject: [PATCH] infra: update to AGENTS.md --- AGENTS.md | 7 +++++++ 1 file changed, 7 insertions(+) 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