Skip to content

Commit 929a5d3

Browse files
ZhuMontomchean
authored andcommitted
Extend auto-indention for generic C/C++ source (sysprog21#29)
1 parent b625d13 commit 929a5d3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,10 @@ function! Formatonsave()
4444
let l:formatdiff = 1
4545
py3f <path to your clang-format.py>/clang-format.py
4646
endfunction
47-
autocmd BufWritePre *.h,*.cc,*.cpp call Formatonsave()
47+
autocmd BufWritePre *.h,*.hpp,*.c,*.cc,*.cpp call Formatonsave()
4848
```
4949
Note: on Ubuntu Linux 18.04, the path to `clang-format.py` is `/usr/share/vim/addons/syntax/`.
5050

51-
5251
## Running the autograders
5352

5453
Before running the autograders, compile your code to create the testing program `qtest`

0 commit comments

Comments
 (0)