diff options
author | Torbjörn SVENSSON <torbjorn.svensson@foss.st.com> | 2025-05-07 19:22:08 +0200 |
---|---|---|
committer | Torbjörn SVENSSON <torbjorn.svensson@foss.st.com> | 2025-05-09 09:09:24 +0200 |
commit | 86a7642ef5979ff1cf28f4b3eda73dae8f0e0ef2 (patch) | |
tree | 8ca4642a68925b07d13d66d6d0059f6fbd99d493 | |
parent | 08d34c8812f0d1927dfedea14dc4f50799066dc3 (diff) | |
download | gcc-86a7642ef5979ff1cf28f4b3eda73dae8f0e0ef2.zip gcc-86a7642ef5979ff1cf28f4b3eda73dae8f0e0ef2.tar.gz gcc-86a7642ef5979ff1cf28f4b3eda73dae8f0e0ef2.tar.bz2 |
check_GNU_style: Remove literal prefix
The path "b/binutils/dwarf.c" should be printed as binutils/dwarf.c",
not "inutils/dwarf.c".
contrib/ChangeLog:
* check_GNU_style_lib.py: Remove literal prefix.
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
-rwxr-xr-x | contrib/check_GNU_style_lib.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/check_GNU_style_lib.py b/contrib/check_GNU_style_lib.py index f680983..8b930ef 100755 --- a/contrib/check_GNU_style_lib.py +++ b/contrib/check_GNU_style_lib.py @@ -279,7 +279,9 @@ def check_GNU_style_file(file, format): patch = PatchSet(file) for pfile in patch.added_files + patch.modified_files: - t = pfile.target_file.lstrip('b/') + t = pfile.target_file + if t.startswith('b/'): + t = t[2:] # Skip testsuite files if 'testsuite' in t or t.endswith('.py'): continue |