Contrib: Fix check_GNU_style.py for some .opt issues [PR125275]
Updates check_GNU_style.py to ignore line length and spacing rules for .opt files.
This commit modifies the check_GNU_style.py script to ignore certain style checks for .opt files. Specifically, it disables the checks for line length (greater than 80 columns) and spacing after the function name. These style requirements are not applicable or useful for .opt files, which have a different structure and purpose than regular source code files.
In Details
This commit adjusts check_GNU_style.py in the contrib directory to exclude .opt files from line length and function parenthesis checks. The changes are localized to the LineLengthCheck.check and FunctionParenthesisCheck.check methods in check_GNU_style_lib.py. This prevents spurious style warnings when running the script on .opt files.
For Context
The check_GNU_style.py script is a utility used to enforce GNU coding style guidelines within the GCC project. .opt files are used to define the instruction patterns and optimizations used by GCC's backends. These files have a specific format that doesn't always align with general coding style guidelines, hence the need to relax certain checks.