`google-c-style.el` not indenting class properly
- Dominant language
- HTML
- Stars
- 39.6k
- Forks
- 12.9k
- Avg merge
- 42m
- Merged PRs (30d)
- 15
Description
Hi there, I use emacs GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.30) in ubuntu 16.04 desktop.
I use the goole-c-style.el for c++ coding, but the public notation indent is not right according to
cppguide.html # Class Format #
```
class MyClass : public OtherClass {
public: // Note the 1 space indent!
MyClass(); // Regular 2 space indent.
}
};
```
My code snippet as below:
```
// simple derived class
class RatedPlayer : public TableTennisPlayer {
public: // **_NO 1 space indent here_**
aa();
};
```
and my init.el content as below:
```
(setq emacs-load-start-time (current-time))
(add-to-list 'load-path (expand-file-name "~/.emacs.d/lisp"))
(let ((file-name-handler-alist nil))
(require 'init-gui-frames)
(require 'google-c-style)
(add-hook 'c-mode-common-hook 'google-set-c-style)
(add-hook 'c-mode-common-hook 'google-make-newline-indent)
)
```
Any help ?
Thank you!
Contributor guide
Assessment
This issue has not been assessed yet.