mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Update CONTRIBUTION.md
This commit is contained in:
parent
4717db2a08
commit
00a75bd58b
@ -90,9 +90,9 @@ If cpplint is ___not___ installed then do:
|
||||
Once cpplint is installed, test your file(s) with:
|
||||
* `cpplint --filter=-legal my_file.cpp my_other_file.cpp` # Fix any issues and try again.
|
||||
|
||||
The [__clang-format__](https://clang.llvm.org/docs/ClangFormat.html) tool can fix many but not all _cpplint_ issues.
|
||||
The [__clang-format__](https://clang.llvm.org/docs/ClangFormat.html) tool can fix whitespace related _cpplint_ issues.
|
||||
* On Macs only: `brew install clang-format` # Only needs to be installed once.
|
||||
* All platforms: `clang-format --style=Google -i my_file.cpp`
|
||||
* All platforms: `clang-format -i -style="{IndentWidth: 4}" my_file.cpp`
|
||||
|
||||
- Most importantly,
|
||||
- Happy coding!
|
||||
|
Loading…
Reference in New Issue
Block a user