From 87274d0f22e1dfd99b2e5200e2fe75c1b804eac3 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 12 Jul 2017 13:40:41 +0200 Subject: Reformat and sort all includes with clang-format This makes it easier to see which headers includes what. The changes were done by running git grep -l '#\s*include' \ | grep -E '.(cc|h)$' \ | xargs sed -i -E 's/(^\s*)#(\s*)include/\1#\2 include/' To modify all include lines by adding a space, and then running ./git-clang-format.sh. --- .clang-format | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to '.clang-format') diff --git a/.clang-format b/.clang-format index 3f5e0c127..654100364 100644 --- a/.clang-format +++ b/.clang-format @@ -7,4 +7,18 @@ IndentWidth: 3 ColumnLimit: 0 BreakBeforeBraces: Allman AccessModifierOffset: 0 -SortIncludes: false +IncludeCategories: + - Regex: 'apti18n.h' + Priority: 9999 + - Regex: 'apt-[^/]*/' + Priority: 20 + - Regex: '^"' + Priority: 10 + - Regex: 'config.h' + Priority: 0 + - Regex: '(zlib|bzlib|lzma|lz4frame|gtest/gtest|db|gnutls/.*)\.h' + Priority: 30 + - Regex: '\.h' + Priority: 100 + - Regex: '.*' + Priority: 99 -- cgit v1.2.3-18-g5258