Skip to content

Nested classes are not properly formatted under --style=linux #6

@bruce-visscher

Description

@bruce-visscher

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions