clang-format.bash: update to clang-format-6.0

Update `.clang-format` with configuration to make the 6.0 format as
close as possible to what 3.8 produced before.  Then revise the style:

* Indent preprocessor directives (a feature new since 3.8)
* Add a newline and indentation before inheritance `:` and `,`

Rename the Git attribute identifying the format to include the
clang-format version number: `format.clang-format-6.0`.  This will aid
external infrastructure in knowing what version of the tool to run.
This commit is contained in:
Brad King
2018-05-31 13:40:34 -04:00
parent eb7ec19c1c
commit 523c443d13
13 changed files with 33 additions and 20 deletions

View File

@@ -1,2 +1,2 @@
# Do not format third-party sources.
/kwsys/** -format.clang-format
/kwsys/** -format.clang-format-6.0