Code::Blocks and Qt Creator code uses a style guide which recommends indenting the next line after the access modifier e.g.
class Foo
{
int abc;
public:
int def;
void foo();
private:
int ghi;
void foo();
}The following patch with the addition of a new option
AccessModifierIndentation: true
This PR (https://bugs.llvm.org/show_bug.cgi?id=19056) was raised a long time ago (2014), and recently was pinged for an update
The following patch aim to address this issue, potentially allowing clang-format to be used (rather than astyle)
I think we need to explain this a bit more:
What this does is:
Indent classes with access modifiers at 2x indent compared to classes without access modifiers, while keeping the access modifiers at a normal indent.