about summary refs log tree commit diff
path: root/third_party
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-05-19T14·51+0100
committerVincent Ambo <tazjin@google.com>2020-05-19T14·55+0100
commitb508f5b91a1b0c7009dcafb23114fff8d6020765 (patch)
treed13cfb96d133da946129ca33cf56bc2d436a3a0a /third_party
parent1086072d3df1c5d5be39c82206ea3600a7c30950 (diff)
style(3p/nix): Change include formatting config for clang-format r/765
Changes the configuration to regroup all includes. The include groups
will be (in this order):

1. (in .cc): Include of the corresponding header
2. Includes of C++ standard library headers
3. Includes of other external headers
4. Includes of local headers
Diffstat (limited to 'third_party')
-rw-r--r--third_party/nix/.clang-format9
1 files changed, 7 insertions, 2 deletions
diff --git a/third_party/nix/.clang-format b/third_party/nix/.clang-format
index faefcfa1c457..b8c36e122b04 100644
--- a/third_party/nix/.clang-format
+++ b/third_party/nix/.clang-format
@@ -2,5 +2,10 @@
 BasedOnStyle: Google
 DerivePointerAlignment: false
 PointerAlignment: Left
-IncludeBlocks: Merge
-CommentPragmas: '(@copydoc)'
+IncludeCategories:
+  - Regex: '^<.*\.h>'
+    Priority: 2
+  - Regex: '^<.*'
+    Priority: 1
+  - Regex: '.*'
+    Priority: 3