This is the mail archive of the libstdc++@gcc.gnu.org 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]

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


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