This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Transformation of contrib/check_GNU_style.sh to a python script
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: Martin Liška <mliska at suse dot cz>
- Cc: GCC Development <gcc at gcc dot gnu dot org>, Tom_deVries at mentor dot com, Martin Sebor <msebor at gmail dot com>
- Date: Mon, 15 May 2017 21:31:44 +0200
- Subject: Re: Transformation of contrib/check_GNU_style.sh to a python script
- Authentication-results: sourceware.org; auth=none
- References: <e871583b-30a6-9c01-52fa-504d8ead0fdc@suse.cz> <0f951a43-4afb-1404-fd9a-5026177a891f@suse.cz>
* Martin Liška:
> validate(pfile.target_file.lstrip('b/'), line.target_line_no, line.value)
Violates line length constraint. :)
My own egrep script also checks for/switch/if/while/do on the same
line as "{", and "(" not preceded by whitespace (currently has false
positves with the definition of function-like macros, among other
things).