简体   繁体   中英

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();
};

?

I've finally find parameters that can do it:

indent_access_spec = 0 
indent_access_spec_body = true

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM