You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 95f439d
Browse filesBrowse the repository at this point in the historyBrowse files
DIR-4-10: Report include guards reused across header files
MISRA C:2025 promotes the guard-uniqueness note of Dir 4.10 to a
normative amplification. Report header files sharing an include-guard
name, even across translation units or file extensions.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: cpp/common/test/rules/includeguardsnotused/IncludeGuardsNotUsed.expected
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
| headers/dir410_a.h:0:0:0:0 | headers/dir410_a.h | Header file 'dir410_a.h' uses an include guard also used by $@. | headers/dir410_b.hpp:0:0:0:0 | headers/dir410_b.hpp | header file |
2
+
| headers/dir410_b.hpp:0:0:0:0 | headers/dir410_b.hpp | Header file 'dir410_b.hpp' uses an include guard also used by $@. | headers/dir410_a.h:0:0:0:0 | headers/dir410_a.h | header file |
1
3
| headers/test3.hpp:0:0:0:0 | headers/test3.hpp | Header file test3.hpp is missing expected include guard. | headers/test3.hpp:0:0:0:0 | headers/test3.hpp | |
2
4
| headers/test4.hpp:0:0:0:0 | headers/test4.hpp | Header file test4.hpp is missing expected include guard. | headers/test4.hpp:0:0:0:0 | headers/test4.hpp | |
3
5
| headers/test5.hpp:0:0:0:0 | headers/test5.hpp | Header file test5.hpp is missing expected include guard. | headers/test5.hpp:0:0:0:0 | headers/test5.hpp | |
0 commit comments