Skip to content

Commit 44adb50

Browse files
authored
Add install instructions for clang version 10 to cpp11 webpage (#191)
1 parent 654a99a commit 44adb50

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

vignettes/internals.Rmd

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,15 @@ covr::report(cpp11_coverage())
5656

5757
## Code formatting
5858

59-
This project uses [clang-format](https://clang.llvm.org/docs/ClangFormat.html) to automatically format the c++ code.
59+
This project uses [clang-format](https://clang.llvm.org/docs/ClangFormat.html) (version 10) to automatically format the c++ code.
60+
61+
You can run `make format` to re-format all code in the project. If your system does not have `clang-format` version 10, this can be installed using a [homebrew tap](https://github.com/r-lib/homebrew-taps) at the command line with `brew install r-lib/taps/clang-format@10`.
62+
63+
You may need to link the newly installed version 10. To do so, run `brew unlink clang-format` followed by `brew link clang-format@10`.
64+
65+
Alternatively many IDEs support automatically running `clang-format` every time files are written.
66+
6067

61-
You can run `make format` to re-format all code in the project. Alternatively many IDEs support automatically running `clang-format` every time files are written.
6268

6369
## Code organization
6470

0 commit comments

Comments
 (0)