-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clang format with version check #3513
clang format with version check #3513
Conversation
… clang-format-version-check
|
||
if ! [[ $version == *"$VERSION"* ]]; then | ||
echo "clang-format version check failed." | ||
echo "a version contains '$VERSION' is needed, but get '$version'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not quote variable with ''
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My fault, it could display well.
.clang_format.hook
Outdated
if ! [[ $version == *"$VERSION"* ]]; then | ||
echo "clang-format version check failed." | ||
echo "a version contains '$VERSION' is needed, but get '$version'" | ||
echo "you can install the right version, and make an soft-link to /usr/bin/clang-format" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessary in /usr/bin
. Maybe in PATH
is good enough.
you can install the right version and put it in '$PATH'
It seems that this merge should be squashed. |
resolve #3356