From e59d5d14d7e3554b45432c29a8f73df447997770 Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Wed, 24 Jun 2020 18:40:43 +0000 Subject: [PATCH] Update .clang-format with style(9) header-sorting Thanks to work done in the NetBSD clang-format project. No functional change. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D25428 --- .clang-format | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index facbea5f3156..1c6253ddaace 100644 --- a/.clang-format +++ b/.clang-format @@ -64,7 +64,54 @@ TabWidth: 8 ColumnLimit: 80 UseTab: Always SpaceAfterCStyleCast: false -SortIncludes: false +IncludeBlocks: Regroup +IncludeCategories: + - Regex: '^\"opt_.*\.h\"' + Priority: 1 + SortPriority: 10 + - Regex: '^' + Priority: 2 + SortPriority: 20 + - Regex: '^' + Priority: 2 + SortPriority: 21 + - Regex: '^' + Priority: 2 + SortPriority: 22 + - Regex: '^' + Priority: 3 + SortPriority: 30 + - Regex: '^