clang-format: Set Bitcoin Core IncludeCategories
Replace the default llvm include categories with the ones specific to Bitcoin Core.
This commit is contained in:
2 files changed
+11
-8
No files matched your search
+9
-6
@@ -99,17 +99,20 @@ IfMacros:
|
|||||||
- KJ_IF_MAYBE
|
- KJ_IF_MAYBE
|
||||||
IncludeBlocks: Preserve
|
IncludeBlocks: Preserve
|
||||||
IncludeCategories:
|
IncludeCategories:
|
||||||
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
|
- Regex: '^<bitcoin-build-config\.h>'
|
||||||
|
Priority: -1
|
||||||
|
CaseSensitive: true
|
||||||
|
- Regex: '^<boost/'
|
||||||
Priority: 2
|
Priority: 2
|
||||||
SortPriority: 0
|
CaseSensitive: true
|
||||||
CaseSensitive: false
|
- Regex: '^<Q'
|
||||||
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
|
Priority: 2
|
||||||
|
CaseSensitive: true
|
||||||
|
- Regex: '^<[^>.]*>'
|
||||||
Priority: 3
|
Priority: 3
|
||||||
SortPriority: 0
|
|
||||||
CaseSensitive: false
|
CaseSensitive: false
|
||||||
- Regex: '.*'
|
- Regex: '.*'
|
||||||
Priority: 1
|
Priority: 1
|
||||||
SortPriority: 0
|
|
||||||
CaseSensitive: false
|
CaseSensitive: false
|
||||||
IncludeIsMainRegex: '(Test)?$'
|
IncludeIsMainRegex: '(Test)?$'
|
||||||
IncludeIsMainSourceRegex: ''
|
IncludeIsMainSourceRegex: ''
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
// Distributed under the MIT software license, see the accompanying
|
// Distributed under the MIT software license, see the accompanying
|
||||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
|
|
||||||
#include <boost/test/unit_test.hpp>
|
|
||||||
|
|
||||||
#include <chain.h>
|
#include <chain.h>
|
||||||
#include <node/blockstorage.h>
|
#include <node/blockstorage.h>
|
||||||
#include <rpc/blockchain.h>
|
#include <rpc/blockchain.h>
|
||||||
@@ -11,6 +9,8 @@
|
|||||||
#include <test/util/setup_common.h>
|
#include <test/util/setup_common.h>
|
||||||
#include <util/string.h>
|
#include <util/string.h>
|
||||||
|
|
||||||
|
#include <boost/test/unit_test.hpp>
|
||||||
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
|
||||||
using util::ToString;
|
using util::ToString;
|
||||||
|
|||||||
Reference in new issue
Block a user