How can I realize the following indentation after access modifiers:
class A{
public:
int a;
}
should result in
class A
{
public:
int a; // note the indentation
}
clang-format only allows the access modifiers to be on the same level as the int a
AccessModifierOffset: 0
resulting in
class A
{
public:
int a;
}
IndentWidth
to 8 andAccessModifierOffset
to-4
. But this will also affect how statements within functions are indented. AFIK there's no clean way to do what you want here – Trawler