Skip to content

Commit

Permalink
Formating minor updates
Browse files Browse the repository at this point in the history
* Switch doc to clang-format 10 (above seems to work fine too)
  • Loading branch information
Pierre-Etienne Bougue committed Jun 3, 2022
1 parent 5410695 commit 4b399fc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,13 @@ But bare in mind, it requires python 3.6+ to run.

### C++ formatting

Our pre-commit hooks are running [Clang-format](https://releases.llvm.org/6.0.0/tools/clang/docs/ClangFormat.html) to format our c++ codebase. You'll need version 6.0 in order to pass our CI.
Our pre-commit hooks are running [Clang-format](https://releases.llvm.org/10.0.0/tools/clang/docs/ClangFormat.html) to format our c++ codebase.
You'll need version 10 (or above) in order to pass our CI.
```sh
sudo apt install clang-format-6.0
sudo apt install clang-format-10 # available on Ubuntu 20.04
```

In case you might want to run Clang-format on the entire codebase, you can do:
```sh
pre-commit run clang-format-6.0 --all
pre-commit run clang-format --all
```

0 comments on commit 4b399fc

Please sign in to comment.