Update CONTRIBUTION.md

This commit is contained in:
Christian Clauss 2019-12-05 19:11:02 +01:00 committed by GitHub
parent 4717db2a08
commit 00a75bd58b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,9 +90,9 @@ If cpplint is ___not___ installed then do:
Once cpplint is installed, test your file(s) with: 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. * `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. * 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, - Most importantly,
- Happy coding! - Happy coding!