diff --git a/.clang-format b/.clang-format index ba40986..5af7937 100644 --- a/.clang-format +++ b/.clang-format @@ -44,11 +44,15 @@ DerivePointerAlignment: false DisableFormat: false ExperimentalAutoDetectBinPacking: false ForEachMacros: [ Q_FOREACH, BOOST_FOREACH ] +IncludeBlocks: Regroup + IncludeCategories: - - Regex: '^<(BeastConfig)' - Priority: 0 - - Regex: '^<(ripple)/' + - Regex: '^' Priority: 2 + - Regex: '^<(test)/' + Priority: 1 + - Regex: '^<.*\.h>' + Priority: 0 - Regex: '^<(boost)/' Priority: 3 - Regex: '.*' diff --git a/src/ValidatorKeys.cpp b/src/ValidatorKeys.cpp index 0cd8a26..7e2f6f4 100644 --- a/src/ValidatorKeys.cpp +++ b/src/ValidatorKeys.cpp @@ -20,15 +20,17 @@ #include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include + #include #include #include + #include namespace ripple { diff --git a/src/ValidatorKeys.h b/src/ValidatorKeys.h index 327fdab..3741c45 100644 --- a/src/ValidatorKeys.h +++ b/src/ValidatorKeys.h @@ -18,9 +18,11 @@ */ //============================================================================== -#include -#include +#include +#include + #include + #include #include #include diff --git a/src/ValidatorKeysTool.cpp b/src/ValidatorKeysTool.cpp index a12daea..a899234 100644 --- a/src/ValidatorKeysTool.cpp +++ b/src/ValidatorKeysTool.cpp @@ -18,14 +18,14 @@ */ //============================================================================== +#include #include -#include +#include +#include +#include +#include -#include -#include -#include -#include #include #include #include diff --git a/src/ValidatorKeysTool.h b/src/ValidatorKeysTool.h index d69ff99..90ce4cb 100644 --- a/src/ValidatorKeysTool.h +++ b/src/ValidatorKeysTool.h @@ -19,6 +19,7 @@ //============================================================================== #include + #include namespace boost { diff --git a/src/test/KeyFileGuard.h b/src/test/KeyFileGuard.h index 9683dbe..842c092 100644 --- a/src/test/KeyFileGuard.h +++ b/src/test/KeyFileGuard.h @@ -17,8 +17,10 @@ */ //============================================================================== -#include +#include + #include + #include namespace ripple { diff --git a/src/test/ValidatorKeysTool_test.cpp b/src/test/ValidatorKeysTool_test.cpp index 8ff3aa3..4bf6aaf 100644 --- a/src/test/ValidatorKeysTool_test.cpp +++ b/src/test/ValidatorKeysTool_test.cpp @@ -17,11 +17,13 @@ */ //============================================================================== -#include #include #include + #include +#include + namespace ripple { namespace tests { diff --git a/src/test/ValidatorKeys_test.cpp b/src/test/ValidatorKeys_test.cpp index 0352a7d..0299275 100644 --- a/src/test/ValidatorKeys_test.cpp +++ b/src/test/ValidatorKeys_test.cpp @@ -17,13 +17,15 @@ */ //============================================================================== -#include -#include -#include -#include #include + #include +#include +#include +#include +#include + namespace ripple { namespace tests {