Skip to content

Commit e2df5eb

Browse files
committed
acmego: also process .cpp
1 parent 998375a commit e2df5eb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

acme/acmego/main.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,11 @@ func findClangFormatFile(path string) bool {
6969

7070
// Non-Go formatters (only loaded with -f option).
7171
var otherFormatters = map[string]formatter{
72-
".py": {[]string{"yapf"}, enabledAlways},
73-
".rs": {[]string{"rustfmt", "--emit", "stdout"}, enabledAlways},
74-
".c": {[]string{"clang-format"}, findClangFormatFile},
75-
".h": {[]string{"clang-format"}, findClangFormatFile},
72+
".py": {[]string{"yapf"}, enabledAlways},
73+
".rs": {[]string{"rustfmt", "--emit", "stdout"}, enabledAlways},
74+
".c": {[]string{"clang-format"}, findClangFormatFile},
75+
".h": {[]string{"clang-format"}, findClangFormatFile},
76+
".cpp": {[]string{"clang-format"}, findClangFormatFile},
7677
}
7778

7879
func main() {

0 commit comments

Comments
 (0)