rebase / STL set patch

Robert Collins rbcollins@cygwin.com
Fri Aug 30 05:55:00 GMT 2002


On Thu, 2002-08-29 at 02:36, Jason Tishler wrote:
> Rob,
> 
> On Thu, Aug 29, 2002 at 01:51:55AM +1000, Robert Collins wrote:
> > On Thu, 2002-08-29 at 01:44, Jason Tishler wrote:
> > > Huh?  Do you mean the RebaseConfigParser::parseFoo diffs?
> > 
> > The missing return true from the parser submethods. status=foo(), and
> > foo() didn't return a value.
> 
> Oops on my part -- I'm actually surprised that the compiler didn't catch
> these...

It does, as soon as you turn -Wall on :}. First thing I did when it
didn't work OOTB was to do that.
 
> > * follow the GNU guidelines where they don't contradict what I've just
> > said.
> 
> What about the following C++-ish stuff not (really) covered by the GNU
> coding conventions?
> 
>     o constructor initialization formating:
>     o whitespace formatting:

as per indent. I'm open to a real c++ formatter, but still haven't
evaluated the ones proposed when I discussed this a while ago.

>     o method formatting (i.e., capitalization):
> 
>       bool parseFreeList (...);
>            ^
>       or
> 
>       bool ParseFreeList (...);
>            ^

My preference:
ClassFooToo::methodFooBar

 
>     o data member formatting:

ClassFooToo::memberFoo

>     o etc?

The only other thing is class hierarchy naming:
(for single inheritance only)

ParentClass
ParentClassChild
ParentClassChildTwo

i.e. RebaseBuilder, RebaseBuilderMemory.

However: this last one is *purely* a rule of thumb, and I'm happy with
your class names.

Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20020830/23e45598/attachment.sig>


More information about the Cygwin-apps mailing list