From b508f5b91a1b0c7009dcafb23114fff8d6020765 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 19 May 2020 15:51:15 +0100 Subject: [PATCH] style(3p/nix): Change include formatting config for clang-format 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 --- third_party/nix/.clang-format | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/third_party/nix/.clang-format b/third_party/nix/.clang-format index faefcfa1c..b8c36e122 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