c++qtcode-formattinguncrustify

public, private, signal, etc inditation using uncrustify?


Where in uncrustify's configuration can I find public, private, protected, and Qt's slots and signals indentation? For example to change this:

class MyClass {
public:
    MyClass();
   ~MyClass();
private:
    void method();
};

... to this:

class MyClass {
    public:
        MyClass();
       ~MyClass();
    private:
        void method();
};

?


Solution

  • I've finally find parameters that can do it:

    indent_access_spec = 0 
    indent_access_spec_body = true