Skip to content

google-c-style.el not properly indenting with class member initializer #177

@nicmcd

Description

@nicmcd

Here is the problematic auto indented output I see:

Child::Child(int m)
    : Parent(m) {
}

Child::Child(int m)
    : Parent(m),
      m(m), a(m) {
}

Child::Child(int m)
    : Parent(m),
      m(m) {
      }

Child::Child(int m)
    : Parent(m),
      m(1) {
}

You can see in the 3rd example that the trailing bracket gets indented when it shouldn't. All the other cases work ok except this one. Is google-c-style.el mis-classifying this example?

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:cppThe C++ language

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions