diff options
author | Vincent Ambo <tazjin@google.com> | 2020-05-19T14·51+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-05-19T14·55+0100 |
commit | b508f5b91a1b0c7009dcafb23114fff8d6020765 (patch) | |
tree | d13cfb96d133da946129ca33cf56bc2d436a3a0a /third_party | |
parent | 1086072d3df1c5d5be39c82206ea3600a7c30950 (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-format | 9 |
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 |