aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/.clang-format
diff options
context:
space:
mode:
authornicole mazzuca <mazzucan@outlook.com>2020-07-06 16:45:34 -0700
committerGitHub <noreply@github.com>2020-07-06 16:45:34 -0700
commit6a41626eaf33d2f3392e06d98a94c630bfc30977 (patch)
treefb92f59f27b99c56ed48f6cae649468b4407a073 /toolsrc/.clang-format
parentae4968fad40e8c14541dae89c481ec32c0500426 (diff)
downloadvcpkg-6a41626eaf33d2f3392e06d98a94c630bfc30977.tar.gz
vcpkg-6a41626eaf33d2f3392e06d98a94c630bfc30977.zip
[vcpkg] Format the C++ in CI (#11655)
* [vcpkg] Format the C++ in the CI * format the C++ * CR
Diffstat (limited to 'toolsrc/.clang-format')
-rw-r--r--toolsrc/.clang-format18
1 files changed, 15 insertions, 3 deletions
diff --git a/toolsrc/.clang-format b/toolsrc/.clang-format
index d19c4472a..4b2e83422 100644
--- a/toolsrc/.clang-format
+++ b/toolsrc/.clang-format
@@ -1,4 +1,3 @@
----
BasedOnStyle: WebKit
Language: Cpp
Standard: Cpp11
@@ -32,6 +31,19 @@ ForEachMacros: [TEST_CASE, SECTION]
PenaltyReturnTypeOnItsOwnLine: 1000
SpaceAfterTemplateKeyword: false
SpaceBeforeCpp11BracedList: false
+UseCRLF: false
-IncludeBlocks: Preserve
-SortIncludes: false
+IncludeBlocks: Regroup
+IncludeCategories:
+ - Regex: '^(<vcpkg/base/system_headers\.h>|"pch\.h")$'
+ Priority: -1
+ - Regex: '^<catch2/catch\.hpp>$'
+ Priority: 1
+ - Regex: '^<vcpkg/base/*\.h>$'
+ Priority: 2
+ - Regex: '^<vcpkg/*\.h>$'
+ Priority: 3
+ - Regex: '^<[a-z0-9_]*\.h>$'
+ Priority: 4
+ - Regex: '^<[a-z0-9_]*>$' # C++ standard library
+ Priority: 5