Merge pull request #31 from efcs/add-clang-format

Add Google-style .clang-format file.
pull/27/merge
jueminyang 7 years ago committed by GitHub
commit 0a86ee86ef
  1. 4
      .clang-format
  2. 3
      CONTRIBUTING.md

@ -0,0 +1,4 @@
---
Language: Cpp
BasedOnStyle: Google
...

@ -47,7 +47,8 @@ will be expected to conform to the style outlined
made and **why** it was made. Link to a GitHub issue if it exists. made and **why** it was made. Link to a GitHub issue if it exists.
* Don't fix code style and formatting unless you are already changing that * Don't fix code style and formatting unless you are already changing that
line to address an issue. PRs with irrelevant changes won't be merged. If line to address an issue. Formatting of modified lines may be done using
`git clang-format`. PRs with irrelevant changes won't be merged. If
you do want to fix formatting or style, do that in a separate PR. you do want to fix formatting or style, do that in a separate PR.
* Unless your PR is trivial, you should expect there will be reviewer comments * Unless your PR is trivial, you should expect there will be reviewer comments

Loading…
Cancel
Save