Browse Source
Merge pull request #9526 from ColinKinloch/choose_clang_format
ci: Allow setting clang-format binary
pull/15/merge
liamwhite
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
.ci/scripts/format/script.sh
|
|
|
@ -10,7 +10,7 @@ if grep -nrI '\s$' src *.yml *.txt *.md Doxyfile .gitignore .gitmodules .ci* dis |
|
|
|
fi |
|
|
|
|
|
|
|
# Default clang-format points to default 3.5 version one |
|
|
|
CLANG_FORMAT=clang-format-12 |
|
|
|
CLANG_FORMAT=${CLANG_FORMAT:-clang-format-12} |
|
|
|
$CLANG_FORMAT --version |
|
|
|
|
|
|
|
if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then |
|
|
|
|