1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

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.
This commit is contained in:
Brad King
2018-05-17 09:57:49 -04:00
parent b6ce5aef0f
commit 8cfc45f6bd
2 changed files with 7 additions and 2 deletions

View File

@@ -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