Doxygen attaches a comment block that lacks a @file command to the next declaration rather than to the file.
For example: <img width="742" height="265" alt="image" src="https://github.com/user-attachments/assets/eb555197-eb33-41e8-abcb-3a03afa8a5ff" />
This PR fixes that.
Requested in #36805 (review):
... they are wrong, ... it may be best to fix them instead of ignoring them?
Required for #36805.