Go Down

Topic: Problems with Arduino auto format (Read 484 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy