Hi, On Fri, 25 May 2012, Jakub Jelinek wrote:
> > + /* Return the current size of this hash table. */ > > + > > + size_t size() > > + { > > + return htab->size; > > + } > > (and various other places) - formatting is wrong, missing space between (. And it doesn't start at the first column, and type isn't on a separate line. I realize that this is a member method, hence indenting and C GNU coding standards conflict, but the latter do have some nice properties (for instance that 'grep ^func_name *.c' finds only the definition, not all the calls to func_name). I think we need a discussion about style, now that actually people are working on this. > > +void > > +typed_htab <Element, Hash, Equal, Remove, Allocator> > > +::dispose () > > Do we want to format methods this way? Don't know, but at least it starts at the first column, and grepping for ^:: will give only C++ methods, 'grep -B1 ^::' even including class. So it's no too horrible, despite the syntactic C++ noise. Ciao, Michael.