From: Jonathan Wakely Date: Thu, 4 Dec 2025 09:42:50 +0000 (+0000) Subject: contrib: Skip libstdc++ files in check_GNU_style.py X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28f12e889c75c8f017f82be3dcd899b7ab9288af;p=thirdparty%2Fgcc.git contrib: Skip libstdc++ files in check_GNU_style.py 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 --- diff --git a/contrib/check_GNU_style_lib.py b/contrib/check_GNU_style_lib.py index faf30c4d9a2..fccb3d65691 100755 --- a/contrib/check_GNU_style_lib.py +++ b/contrib/check_GNU_style_lib.py @@ -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