[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GOP-PROP 3: C++ formatting
From: |
Jan Warchoł |
Subject: |
Re: GOP-PROP 3: C++ formatting |
Date: |
Wed, 22 Jun 2011 13:37:10 +0200 |
2011/6/22 Graham Percival <address@hidden>:
> On Wed, Jun 22, 2011 at 12:54:15AM +0000, Keith OHara wrote:
>> Graham Percival <graham <at> percival-music.ca> writes:
>>
>> > My preference is just to say
>> > "let’s just use fixcc.py strictly".
>>
>> Even those of us who fear emacs could probably run that script on changed .cc
>> .hh files before each commit.
>
> Note that even people who use emacs will need to run that script
> before each commit -- it contains tons of rules like:
> ('([\w\(\)\]])([ \t]*)(\.|->)([ \t]*)([\w\(\)])',
> '\\1\\3\\5'),
> ('(\w+::\w+|[A-Z]\w*) < ((\w+::\w+|[A-Z]\w*)<[A-Z]\w*>) >',
> '\\1<\\2 >'),
> which must be applied after emacs has done its formatting.
>
> We may even want to add a git hook to call this script for commits
> or pushes.
That would be great!
I'd very much prefer not to have to use another tool (i.e. Emacs) for
formatting.
Having style fixed automatically would be best i can dream of!
cheers,
Janek
- GOP-PROP 3: C++ formatting, Graham Percival, 2011/06/21
- Re: GOP-PROP 3: C++ formatting, Keith OHara, 2011/06/21
- Re: GOP-PROP 3: C++ formatting, Jan Warchoł, 2011/06/22
- Re: GOP-PROP 3: C++ formatting, Graham Percival, 2011/06/22
- Re: GOP-PROP 3: C++ formatting, Jan Warchoł, 2011/06/22
- Re: GOP-PROP 3: C++ formatting, Graham Percival, 2011/06/22
- Re: GOP-PROP 3: C++ formatting, Carl Sorensen, 2011/06/22
- Re: GOP-PROP 3: C++ formatting, Jan Warchoł, 2011/06/25
- Re: GOP-PROP 3: C++ formatting, Graham Percival, 2011/06/25
- Re: GOP-PROP 3: C++ formatting, Jan Warchoł, 2011/06/25
Re: GOP-PROP 3: C++ formatting, Trevor Daniels, 2011/06/22
Re: GOP-PROP 3: C++ formatting, Hans Aberg, 2011/06/22