1 minor finding
Findings
[minor] · Include-guard lint misses code after a block comment closes
The new lint can accept declarations outside an include guard because it treats code following a closing block comment as comment-only.
Location: test/lint/lint-include-guards.py:76 (head).
Details and suggested fix
A tracked, non-excluded header with the three expected guard directives still passes if its only unguarded code is /* note */ int outside;, or /* note followed by */ int outside;. In both cases, _is_comment_or_blank returns True for the declaration line, and the caller skips the guard-position check. No current header with this pattern was identified; this is a gap in the new enforcement, while the base script only counted guard directives. Continue scanning after each */ and classify the line as comment-only only when the remainder contains nothing but whitespace or further comments. Add regression cases for both forms.