Skip to content

Commit

Permalink
Note that clang-format-7 is required
Browse files Browse the repository at this point in the history
  • Loading branch information
nealrichardson committed Sep 27, 2019
1 parent f83f0e1 commit ea8b8e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
6 changes: 2 additions & 4 deletions r/README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,9 @@ Fix any style issues before committing with
./lint.sh --fix
```

The lint script requires Python 3 and `clang-format`. If the command isn't
The lint script requires Python 3 and `clang-format-7`. If the command isn't
found, you can explicitly provide the path to it like
`CLANG_FORMAT=$(which clang-format) ./lint.sh`

For consistency, it is recommended that you use `clang-format-7`. On macOS,
`CLANG_FORMAT=$(which clang-format-7) ./lint.sh`. On macOS,
you can get this by installing LLVM via Homebrew and running the script as
`CLANG_FORMAT=$(brew --prefix llvm@7)/bin/clang-format ./lint.sh`

Expand Down
11 changes: 4 additions & 7 deletions r/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,11 @@ Fix any style issues before committing with

./lint.sh --fix

The lint script requires Python 3 and `clang-format`. If the command
The lint script requires Python 3 and `clang-format-7`. If the command
isn’t found, you can explicitly provide the path to it like
`CLANG_FORMAT=$(which clang-format) ./lint.sh`

For consistency, it is recommended that you use `clang-format-7`. On
macOS, you can get this by installing LLVM via Homebrew and running the
script as `CLANG_FORMAT=$(brew --prefix llvm@7)/bin/clang-format
./lint.sh`
`CLANG_FORMAT=$(which clang-format-7) ./lint.sh`. On macOS, you can get
this by installing LLVM via Homebrew and running the script as
`CLANG_FORMAT=$(brew --prefix llvm@7)/bin/clang-format ./lint.sh`

### Useful functions

Expand Down

0 comments on commit ea8b8e7

Please sign in to comment.