This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Formatting, tabs vs spaces.
- From: "Chris Fairles" <chris dot fairles at gmail dot com>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 16 Jul 2008 07:28:45 -0400
- Subject: Formatting, tabs vs spaces.
I've always been using 2 spaces instead of a tab character and setting
my tab width to 2. However, it seems that perhaps this isn't the norm?
For example, in the last commit that "fixed" time_point's indentation
shows up like this in some editors (like vim, my editor of choice, and
other gui editors that I use)
template<typename... etc>
struct time_point
{
typedef _Clock...
typedef _Duration.. etc
i.e. the class contents here are only indented by what looks like 2
spaces but really its a single tab char and since my tab width is set
to 2, it doesn't display correctly. Should there not be 3 tab chars
here? or 6 spaces? Should I be using tab chars instead of spaces?
Chris