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.