diff options
author | Brad King <brad.king@kitware.com> | 2017-10-04 13:46:31 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-10-04 13:46:40 (GMT) |
commit | e2f05c731017a3826b0a185e2fc186e61db30849 (patch) | |
tree | 1aab9a805e16eef8b90e87d248fd3df0b08d2629 | |
parent | 0e1ef0ca397db5f0292a218dadc997a7690205cd (diff) | |
parent | 574d694337213da88ded3380cce91ae9478fb579 (diff) | |
download | CMake-e2f05c731017a3826b0a185e2fc186e61db30849.zip CMake-e2f05c731017a3826b0a185e2fc186e61db30849.tar.gz CMake-e2f05c731017a3826b0a185e2fc186e61db30849.tar.bz2 |
Merge topic 'clang-format'
574d6943 clang-format.bash: minor fixes to support MacOS
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1339
-rwxr-xr-x | Utilities/Scripts/clang-format.bash | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Utilities/Scripts/clang-format.bash b/Utilities/Scripts/clang-format.bash index 428a9e4..3b331a1 100755 --- a/Utilities/Scripts/clang-format.bash +++ b/Utilities/Scripts/clang-format.bash @@ -111,7 +111,9 @@ $git_ls | # Select sources with our attribute. git check-attr --stdin format.clang-format | - sed -n '/: format\.clang-format: set$/ {s/:[^:]*:[^:]*$//p}' | + grep -e ': format\.clang-format: set$' | + sed -n 's/:[^:]*:[^:]*$//p' | # Update sources in-place. - xargs -d '\n' "$clang_format" -i + tr '\n' '\0' | + xargs -0 "$clang_format" -i |