Go Down

Topic: Problems with Arduino auto format (Read 416 times) previous topic - next topic

zapta

(using 1.0.5 on Max OSX).

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

Code: [Select]

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?

zapta

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

Code: [Select]

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

Go Up