This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Transformation of contrib/check_GNU_style.sh to a python script


On 05/15/2017 09:31 PM, Florian Weimer wrote:
> * Martin Liška:
> 
>>                 validate(pfile.target_file.lstrip('b/'), line.target_line_no, line.value)
> 
> Violates line length constraint. :)

Yep, fixed in another email in this thread.

> 
> 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).
> 

Can be easily extended to support also these keywords.

Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]