From: Tom Tromey Date: Wed, 17 Apr 2024 20:51:13 +0000 (-0600) Subject: Add check-include-guards.py to pre-commit X-Git-Tag: gdb-16-branchpoint~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2285542e3c6cb4f7da0da87fb813467122be5e22;p=thirdparty%2Fbinutils-gdb.git Add check-include-guards.py to pre-commit This changes pre-commit to run check-include-guards.py. Reviewed-By: Tom de Vries --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 070631c0f16..ea8847ef795 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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/.*'