Add check-include-guards.py to pre-commit

This changes pre-commit to run check-include-guards.py.

Reviewed-By: Tom de Vries <tdevries@suse.de>
This commit is contained in:
Tom Tromey
2024-04-17 14:51:13 -06:00
parent cc70964032
commit 2285542e3c

View File

@@ -59,3 +59,12 @@ repos:
- id: isort
types_or: [file]
files: 'gdb/.*\.py(\.in)?$'
- repo: local
hooks:
- id: check-include-guards
name: check-include-guards
language: python
entry: gdb/check-include-guards.py
# All gdb header files, but not headers in the test suite.
files: '^(gdb(support|server)?)/.*\.h$'
exclude: '.*/testsuite/.*'