google / google/styleguide

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

Open
#177 0 comments 0 reactions 0 assignees View on GitHub
lang:cpp
Dominant language
HTML
Stars
39.6k
Forks
12.9k
Avg merge
42m
Merged PRs (30d)
15

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.