diff options
| author | Tom de Vries <tdevries@suse.de> | 2025-12-10 00:25:19 +0100 |
|---|---|---|
| committer | Tom de Vries <tdevries@suse.de> | 2025-12-10 00:25:19 +0100 |
| commit | 10846fb73761134fb9f0e7c16f59a3e6196707c5 (patch) | |
| tree | f40a30c8da5d743139087ad26301d8300a74720d /gdb/contrib/check-whitespace-pre-commit.py | |
| parent | 08eac89e8897001962ad0624455e9beafb1bc226 (diff) | |
| download | binutils-10846fb73761134fb9f0e7c16f59a3e6196707c5.zip binutils-10846fb73761134fb9f0e7c16f59a3e6196707c5.tar.gz binutils-10846fb73761134fb9f0e7c16f59a3e6196707c5.tar.bz2 | |
[gdb] Fix whitespace in *.c
Fix whitespace in the *.c files in gdb, and add these files to the clean list
in gdb/contrib/check-whitespace-pre-commit.py.
Tested on x86_64-linux.
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/contrib/check-whitespace-pre-commit.py')
| -rwxr-xr-x | gdb/contrib/check-whitespace-pre-commit.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/contrib/check-whitespace-pre-commit.py b/gdb/contrib/check-whitespace-pre-commit.py index 3045b3e..f084a08 100755 --- a/gdb/contrib/check-whitespace-pre-commit.py +++ b/gdb/contrib/check-whitespace-pre-commit.py @@ -18,12 +18,15 @@ import re import subprocess import sys -re_clean = re.compile("(^(gdb/testsuite/|gdbsupport/|gdbserver/)|[.](m4|ac|h)$)") +re_clean = re.compile("(^(gdb/testsuite/|gdbsupport/|gdbserver/)|[.](m4|ac|[ch])$)") +re_clean_exclude = re.compile("^(gdb/symfile.c|gdb/cli/cli-cmds.c)$") clean = [] other = [] for f in sys.argv[1:]: m = re_clean.search(f) + if m and re_clean_exclude.search(f): + m = None if m: clean.append(f) else: |
