From 868e0af508232178135a164bf82732d129a01a68 Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 19 Aug 2026 09:44:07 +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 0fd7e86..f02e6d4 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -74,6 +74,13 @@ meson test -C build --verbose - Public functions return `bool` or validate via early `return`. - No `errno`; no exceptions. +### 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 every change.