-
Notifications
You must be signed in to change notification settings - Fork 548
CXX-2745 reorganize and tidy up internal code to support multiple ABI interfaces #1323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 17 commits
c68049a
83acc8f
6033b0f
973bf1b
0613b77
ac2fecc
dc9cd5c
a4b9049
9954cad
ad5609e
8dd2eda
0888c57
4765973
dd624da
e4c7a7f
c505b96
b65fcd0
f4ff4e7
09e13d0
b1b49ae
4c5760d
d47cfe0
696e8db
beba4a0
f28d1ae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,10 @@ | |
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| set(bsoncxx_sources_private | ||
| bsoncxx/private/itoa.cpp | ||
| ) | ||
|
|
||
| set(bsoncxx_sources_v_noabi | ||
| bsoncxx/v_noabi/bsoncxx/array/element.cpp | ||
| bsoncxx/v_noabi/bsoncxx/array/value.cpp | ||
|
|
@@ -28,7 +32,6 @@ set(bsoncxx_sources_v_noabi | |
| bsoncxx/v_noabi/bsoncxx/exception/exception.cpp | ||
| bsoncxx/v_noabi/bsoncxx/json.cpp | ||
| bsoncxx/v_noabi/bsoncxx/oid.cpp | ||
| bsoncxx/v_noabi/bsoncxx/private/itoa.cpp | ||
| bsoncxx/v_noabi/bsoncxx/string/view_or_value.cpp | ||
| bsoncxx/v_noabi/bsoncxx/types.cpp | ||
| bsoncxx/v_noabi/bsoncxx/types/bson_value/value.cpp | ||
|
|
@@ -45,6 +48,7 @@ set(bsoncxx_sources_v1 | |
| ) | ||
|
|
||
| list(APPEND bsoncxx_sources | ||
| ${bsoncxx_sources_private} | ||
| ${bsoncxx_sources_v_noabi} | ||
| ${bsoncxx_sources_v1} | ||
| ) | ||
|
|
@@ -54,8 +58,8 @@ set(bsoncxx_sources "${bsoncxx_sources}" PARENT_SCOPE) | |
| # Generate private headers. | ||
| if(1) | ||
| configure_file( | ||
| bsoncxx/v_noabi/bsoncxx/config/private/config.hh.in | ||
| bsoncxx/v_noabi/bsoncxx/config/private/config.hh | ||
| bsoncxx/private/config/config.hh.in | ||
| bsoncxx/private/config/config.hh | ||
| ) | ||
| endif() | ||
|
||
|
|
||
|
|
@@ -81,19 +85,18 @@ endif() | |
|
|
||
| set_dist_list(src_bsoncxx_lib_DIST | ||
| CMakeLists.txt | ||
| ${bsoncxx_sources_private} | ||
| ${bsoncxx_sources_v_noabi} | ||
| ${bsoncxx_sources_v1} | ||
| bsoncxx/v_noabi/bsoncxx/config/private/config.hh.in | ||
| bsoncxx/v_noabi/bsoncxx/config/private/postlude.hh | ||
| bsoncxx/v_noabi/bsoncxx/config/private/prelude.hh | ||
| bsoncxx/v_noabi/bsoncxx/private/b64_ntop.hh | ||
| bsoncxx/v_noabi/bsoncxx/private/helpers.hh | ||
| bsoncxx/v_noabi/bsoncxx/private/make_unique.hh | ||
| bsoncxx/v_noabi/bsoncxx/private/itoa.hh | ||
| bsoncxx/v_noabi/bsoncxx/private/libbson.hh | ||
| bsoncxx/v_noabi/bsoncxx/private/stack.hh | ||
| bsoncxx/v_noabi/bsoncxx/private/suppress_deprecation_warnings.hh | ||
| bsoncxx/v_noabi/bsoncxx/test_util/export_for_testing.hh | ||
| bsoncxx/private/b64_ntop.hh | ||
| bsoncxx/private/config/config.hh.in | ||
| bsoncxx/private/export.hh | ||
| bsoncxx/private/helpers.hh | ||
| bsoncxx/private/itoa.hh | ||
| bsoncxx/private/bson.hh | ||
| bsoncxx/private/make_unique.hh | ||
| bsoncxx/private/stack.hh | ||
| bsoncxx/private/suppress_deprecation_warnings.hh | ||
| bsoncxx/v_noabi/bsoncxx/types/bson_value/private/value.hh | ||
kevinAlbs marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| bsoncxx/v_noabi/bsoncxx/types/private/convert.hh | ||
| bsoncxx/v1/config/config.hpp.in | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: Can these YAML mappings be re-sorted by their
Priorityfield?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
Priority: 6*categories look like they can be reordered, so updated as suggested.However, in general, unfortunately no. The "first regex match" in the order they are listed is what determines the group and priority of the header. e.g. given:
the
<bsoncxx/private/.*>headers will never match the priority 60 "private headers" regex because they'll always match the priority 30 "system headers" regex first.