]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
contrib: Skip libstdc++ files in check_GNU_style.py
authorJonathan Wakely <jwakely@redhat.com>
Thu, 4 Dec 2025 09:42:50 +0000 (09:42 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 8 Dec 2025 10:43:36 +0000 (10:43 +0000)
The libstdc++ style is different from the rest of GCC, so do not apply
the checks to libstdc++ files in a patch.

contrib/ChangeLog:

* check_GNU_style_lib.py (check_GNU_style_file): Do not check
libstdc++ files.

Reviewed-by: Christophe Lyon <christophe.lyon@linaro.org>
contrib/check_GNU_style_lib.py

index faf30c4d9a2ed9549d1cb4f84eeb9e929d228928..fccb3d6569180271ac55331a6c6c70025bbb278e 100755 (executable)
@@ -285,6 +285,9 @@ def check_GNU_style_file(file, format):
         # Skip testsuite files
         if 'testsuite' in t or t.endswith('.py'):
             continue
+        # Libstdc++ does not use GNU style
+        if t.startswith('libstdc++-v3/'):
+            continue
 
         for hunk in pfile:
             delta = 0