summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-05-17 09:57:49 -0400
committerBrad King <brad.king@kitware.com>2018-05-18 09:19:10 -0400
commit8cfc45f6bd91b258eccf058913df1490ae2face6 (patch)
tree936bd2d8df7ebdcdc369308e06945989a4e3a419 /.clang-format
parentb6ce5aef0fd3b9d0c60643073db1880b857189b8 (diff)
downloadcmake-8cfc45f6bd91b258eccf058913df1490ae2face6.tar.gz
clang-format: Explicitly require version 3.8 of the tool
Versions of clang-format newer than 3.8 produce different output. Our source code guide says that version 3.8 exactly must be used. Update the comment in our `.clang-format` config file accordingly. Add a check to our formatting script to verify the version. Also update its tool search to look for the explicitly-named 3.8 variant first.
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format2
1 files changed, 1 insertions, 1 deletions
diff --git a/.clang-format b/.clang-format
index 88bfbd3351..c0b5cc34b2 100644
--- a/.clang-format
+++ b/.clang-format
@@ -1,5 +1,5 @@
---
-# This configuration requires clang-format 3.8 or higher.
+# This configuration requires clang-format version 3.8 exactly.
BasedOnStyle: Mozilla
AlignOperands: false
AlwaysBreakAfterReturnType: None