Skip to content

Commit 119e156

Browse files
committed
use clang_format having the same version with the Paddle main repo.
1 parent b236139 commit 119e156

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.clang_format.hook

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set -e
33

4-
readonly VERSION="3.9"
4+
readonly VERSION="3.8"
55

66
version=$(clang-format -version)
77

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ addons:
1616
- python
1717
- python-pip
1818
- python2.7-dev
19-
- clang-format-3.9
19+
- clang-format-3.8
2020
ssh_known_hosts: 52.76.173.135
2121
before_install:
22-
- if [[ "$JOB" == "PRE_COMMIT" ]]; then sudo ln -s /usr/bin/clang-format-3.9 /usr/bin/clang-format; fi
22+
- if [[ "$JOB" == "PRE_COMMIT" ]]; then sudo ln -s /usr/bin/clang-format-3.8 /usr/bin/clang-format; fi
2323
- sudo pip install -U virtualenv pre-commit pip
2424
- docker pull paddlepaddle/paddle:latest
2525

0 commit comments

Comments
 (0)