Problems with Arduino auto format

(using 1.0.5 on Max OSX).

Auto format often give faulty results. For example, this one (the 'private' has negative indent).

namespace foo {
  struct  {
    static void enter() {
    }
private:
    static uint8 i;
  } 
  bar;
}

Is it possible to customize the auto format style? If not, any suggestion for a better auto formatter that works nicely with the Arduino IDE?

Here is another example, notice the negative indentation of the ':'.

namespace foo {
  class bar {
    bar(int a) 
: 
      a_(a) {
      }
    int a_;  
  };  
}