google-astyle
google-astyle copied to clipboard
Nested classes are not properly formatted under --style=linux
Given this defintion in foo.h:
class A
{
class B {
};
};
When I format this using
google-astyle --style=linux foo.h
Then the opening brace for the nested class "B" is incorrectly lined up in the first column:
class A
{
class B
{
};
};
I note that if I change "class B" to "struct B" then it lines up properly.
Okay, so apparently, google-astyle is a stale clone of AStyle which resides at source forge? AStyle doesn't seem to have this issue. (If I am correct then the solution to this would be to resync with AStyle but better might be to switch to using AStyle).