Review report

bitcoin/bitcoin: PR #36808

1 minor finding

Earlier concerns neither republished nor resolved: 1 major finding. See the Run archive for their assessments.

Findings

Link

[minor] · The include-guard lint misses code after block comments

The new lint skips code following a block-comment terminator on a comment-leading line, allowing that code outside the include guard without reporting it.

Location: test/lint/lint-include-guards.py:76 (head).

Details and suggested fix

For an otherwise correctly guarded header, append /* note */ int outside; after the closing #endif, or append /* note followed on the next line by */ int outside;. Both forms leave the expected guard count at three. _is_comment_or_blank returns True for the declaration's line because it either starts with /* or begins inside an open block comment. The caller then skips the line before checking its position. Continue scanning after each */ and classify the line as comment-only only when nothing but whitespace or further comments remains. Add regression cases for both forms. No current header with this pattern was found, so this is a gap in the new enforcement, not an identified existing violation; the base script had no outside-guard check.


Coverage details

Earlier concerns

Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.