summaryrefslogtreecommitdiffstats
path: root/Utilities/Scripts/clang-format.bash
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-06-01 16:52:10 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-06-01 16:52:38 (GMT)
commiteed0df951d95d48e7856107175a2baba212c3206 (patch)
treed9ac3ded5ae6899be7188795011743fe3e6da0a6 /Utilities/Scripts/clang-format.bash
parentb671e4799f0e418448681a21120e8e87a97de5dc (diff)
parentd7204e649ed4ebb19bb341b4e49eb51514364922 (diff)
downloadCMake-eed0df951d95d48e7856107175a2baba212c3206.zip
CMake-eed0df951d95d48e7856107175a2baba212c3206.tar.gz
CMake-eed0df951d95d48e7856107175a2baba212c3206.tar.bz2
Merge topic 'clang-format-6.0'
d7204e649e Revise C++ coding style using clang-format-6.0 12fed3edb1 Empty commit at end of history preceding clang-format-6.0 style transition 523c443d13 clang-format.bash: update to clang-format-6.0 eb7ec19c1c clang-format: Add comments to suppress some formatting b67a5bf175 Tests/VSWinStorePhone: Do not format managed source Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Sebastian Holtermann <sebholt@xwmw.org> Merge-request: !2123
Diffstat (limited to 'Utilities/Scripts/clang-format.bash')
-rwxr-xr-xUtilities/Scripts/clang-format.bash10
1 files changed, 5 insertions, 5 deletions
diff --git a/Utilities/Scripts/clang-format.bash b/Utilities/Scripts/clang-format.bash
index 4c6225d..7ca4433 100755
--- a/Utilities/Scripts/clang-format.bash
+++ b/Utilities/Scripts/clang-format.bash
@@ -78,7 +78,7 @@ test "$#" = 0 || die "$usage"
# Find a default tool.
tools='
- clang-format-3.8
+ clang-format-6.0
clang-format
'
if test "x$clang_format" = "x"; then
@@ -96,8 +96,8 @@ if ! type -p "$clang_format" >/dev/null; then
exit 1
fi
-if ! "$clang_format" --version | grep 'clang-format version 3\.8' >/dev/null 2>/dev/null; then
- echo "clang-format version 3.8 is required (exactly)"
+if ! "$clang_format" --version | grep 'clang-format version 6\.0' >/dev/null 2>/dev/null; then
+ echo "clang-format version 6.0 is required (exactly)"
exit 1
fi
@@ -115,8 +115,8 @@ esac
$git_ls |
# Select sources with our attribute.
- git check-attr --stdin format.clang-format |
- grep -e ': format\.clang-format: set$' |
+ git check-attr --stdin format.clang-format-6.0 |
+ grep -e ': format\.clang-format-6\.0: set$' |
sed -n 's/:[^:]*:[^:]*$//p' |
# Update sources in-place.