Skip to content

Commit 7993065

Browse files
authored
clang-format: separate bsoncxx and mongocxx header groups (#1210)
1 parent 58449cc commit 7993065

File tree

235 files changed

+296
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

235 files changed

+296
-4
lines changed

.clang-format

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,24 @@ IncludeBlocks: Regroup
1212
IncludeCategories:
1313
- Regex: '".*"' # relative headers
1414
Priority: 10
15-
- Regex: '(bsoncxx|mongocxx)/config(/private)?/prelude\.(hpp|hh)' # v_noabi preludes
15+
- Regex: 'bsoncxx/config(/private)?/prelude\.(hpp|hh)' # v_noabi preludes
1616
Priority: 50
17-
- Regex: '(bsoncxx|mongocxx)/test/.*' # test headers
17+
- Regex: 'mongocxx/config(/private)?/prelude\.(hpp|hh)' # v_noabi preludes
18+
Priority: 51
19+
- Regex: 'bsoncxx/test/.*' # test headers
1820
Priority: 60
21+
- Regex: 'mongocxx/test/.*' # test headers
22+
Priority: 61
1923
- Regex: '<[[:alnum:]_.]+>' # system headers
2024
Priority: 20
21-
- Regex: '(bsoncxx|mongocxx)/.*(-|\/)fwd\.(hpp|hh)' # all driver forwarding headers
25+
- Regex: 'bsoncxx/.*(-|\/)fwd\.(hpp|hh)' # all driver forwarding headers
2226
Priority: 30
23-
- Regex: '(bsoncxx|mongocxx)/.*' # all remaining (normal) driver headers
27+
- Regex: 'mongocxx/.*(-|\/)fwd\.(hpp|hh)' # all driver forwarding headers
28+
Priority: 31
29+
- Regex: 'bsoncxx/.*' # all remaining (normal) driver headers
2430
Priority: 40
31+
- Regex: 'mongocxx/.*' # all remaining (normal) driver headers
32+
Priority: 41
2533
- Regex: '.*' # all other headers (third party)
2634
Priority: 90
2735
IndentWidth: 4

examples/add_subdirectory/hello_mongocxx.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
#include <bsoncxx/builder/basic/document.hpp>
1919
#include <bsoncxx/json.hpp>
20+
2021
#include <mongocxx/client.hpp>
2122
#include <mongocxx/instance.hpp>
2223
#include <mongocxx/uri.hpp>

examples/mongocxx/aggregate.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <bsoncxx/builder/basic/document.hpp>
1818
#include <bsoncxx/builder/basic/kvp.hpp>
1919
#include <bsoncxx/json.hpp>
20+
2021
#include <mongocxx/client.hpp>
2122
#include <mongocxx/instance.hpp>
2223
#include <mongocxx/pipeline.hpp>

examples/mongocxx/automatic_client_side_field_level_encryption.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <bsoncxx/builder/stream/helpers.hpp>
2525
#include <bsoncxx/json.hpp>
2626
#include <bsoncxx/types/bson_value/make_value.hpp>
27+
2728
#include <mongocxx/client.hpp>
2829
#include <mongocxx/client_encryption.hpp>
2930
#include <mongocxx/instance.hpp>

examples/mongocxx/bulk_write.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <bsoncxx/builder/basic/document.hpp>
1919
#include <bsoncxx/builder/basic/kvp.hpp>
2020
#include <bsoncxx/json.hpp>
21+
2122
#include <mongocxx/client.hpp>
2223
#include <mongocxx/instance.hpp>
2324
#include <mongocxx/uri.hpp>

examples/mongocxx/causal_consistency.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <bsoncxx/builder/stream/document.hpp>
2222
#include <bsoncxx/builder/stream/helpers.hpp>
2323
#include <bsoncxx/json.hpp>
24+
2425
#include <mongocxx/client.hpp>
2526
#include <mongocxx/client_session.hpp>
2627
#include <mongocxx/collection.hpp>

examples/mongocxx/change_streams.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <bsoncxx/json.hpp>
2121
#include <bsoncxx/stdx/optional.hpp>
2222
#include <bsoncxx/string/to_string.hpp>
23+
2324
#include <mongocxx/change_stream.hpp>
2425
#include <mongocxx/client.hpp>
2526
#include <mongocxx/instance.hpp>

examples/mongocxx/client_session.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <bsoncxx/builder/basic/document.hpp>
2020
#include <bsoncxx/builder/basic/kvp.hpp>
2121
#include <bsoncxx/json.hpp>
22+
2223
#include <mongocxx/client.hpp>
2324
#include <mongocxx/instance.hpp>
2425
#include <mongocxx/uri.hpp>

examples/mongocxx/connect.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <bsoncxx/builder/basic/document.hpp>
2020
#include <bsoncxx/builder/basic/kvp.hpp>
2121
#include <bsoncxx/json.hpp>
22+
2223
#include <mongocxx/client.hpp>
2324
#include <mongocxx/instance.hpp>
2425
#include <mongocxx/logger.hpp>

examples/mongocxx/create.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <bsoncxx/builder/basic/document.hpp>
1919
#include <bsoncxx/builder/basic/kvp.hpp>
2020
#include <bsoncxx/types.hpp>
21+
2122
#include <mongocxx/client.hpp>
2223
#include <mongocxx/instance.hpp>
2324
#include <mongocxx/uri.hpp>

0 commit comments

Comments
 (0)