mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 04:24:43 +00: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:
@@ -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/.*'
|
||||
|
||||
Reference in New Issue
Block a user