How to do this?

Post here any ideas/problems/suggestions you have regarding CodeLite's CodeFormatter (AStyle) plugin

How to do this?

Postby evstevemd » Tue Mar 23, 2010 6:20 pm

I have tried options but I get closer but not as I want. I wonder if I'm missing something. Please bear with me if my style is unacceptable ;)

Code: Select all
class TestClass : public wxFrame{
        public:
                void myMethod(int x, bool y){
                        if(!y){
                                sqrt(x);
                         }
                         else{
                                 pow(x, 3);
                         }
                 }

}


I have problem, among some of them is if else issue and braces
Code: Select all
if(!y){
          sqrt(x);
          } else{
                   pow(x, 3);
}
CodeLite 12.x
CodeLite is awesome, I just Love it!
evstevemd
CodeLite Guru
 
Posts: 329
Joined: Sun Nov 29, 2009 7:36 pm

Return to CodeFormatter

Who is online

Users browsing this forum: No registered users and 1 guest