This is the mail archive of the mailing list for the libstdc++ 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: please stop messing with the indentation

On Thu, Aug 08, 2002 at 11:44:24AM -0700, Benjamin Kosnik wrote:
> > (1) is what I was striving for WRT indentation.  We already require a
> > comment on the closing brace of the namespace.
> Perhaps you can mark up stl_vector.h and check it in? I'm curious to see
> how you are envisioning this.

That /is/ how I'm envisioning it.  Like Matt said, don't indent names in
a namespace when everything in the file is in that namespace.  For the
cases of more than one namespace in a file, or entities in the file that
are not in that namespace, we indent.  (Or split up the files, whichever
makes more sense in that case.)

More briefly:  everything as normal, just two spaces to the left.

The indentation within a class/function should be like you said, as
C++STYLE describes.  For example, _Vector_alloc_base is wrong at present.


I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
                                                 - Edsger Dijkstra, 1930-2002

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