Problem:
When declaring nested classes in C++, the uncrustify linter indents their access specifiers incorrectly.
Current behaviour:
The following example shows the current result of running uncrustify:
class SomeClass{
public:
class SomeNestedClass{
public:
SomeNestedClass();
private:
int some_private_member_;
};
};
Desired behaviour:
The desired behaviour would be to indent access specifiers on the level of the class they belong to as shown below:
class SomeClass{
public:
class SomeNestedClass{
public:
SomeNestedClass();
private:
int some_private_member_;
};
};
Proposed Solution:
The desired behaviour can be obtained if the indent_access_spec property is set to -indent_columns.
Problem:
When declaring nested classes in C++, the uncrustify linter indents their access specifiers incorrectly.
Current behaviour:
The following example shows the current result of running uncrustify:
Desired behaviour:
The desired behaviour would be to indent access specifiers on the level of the class they belong to as shown below:
Proposed Solution:
The desired behaviour can be obtained if the
indent_access_specproperty is set to-indent_columns.