mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2026-08-27 00:26:02 -04:00
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:
parent
cc70964032
commit
2285542e3c
1 changed files with 9 additions and 0 deletions
|
|
@ -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/.*'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue