Pages: [1]   Go Down
Author Topic: Problems with Arduino auto format  (Read 397 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 51
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

(using 1.0.5 on Max OSX).

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

Code:
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?
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 51
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

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

Pages: [1]   Go Up
Jump to: