couchbase 4.2.2 → 4.2.4
Sign up to get free protection for your applications and to get access to all the features.
- package/deps/couchbase-cxx-client/.github/workflows/sanitizers.yml +20 -12
- package/deps/couchbase-cxx-client/.github/workflows/tests.yml +5 -3
- package/deps/couchbase-cxx-client/.idea/vcs.xml +2 -0
- package/deps/couchbase-cxx-client/CMakeLists.txt +67 -8
- package/deps/couchbase-cxx-client/README.md +1 -0
- package/deps/couchbase-cxx-client/bin/build-tests +3 -0
- package/deps/couchbase-cxx-client/bin/build-tests.rb +9 -0
- package/deps/couchbase-cxx-client/bin/create-search-index +164 -0
- package/deps/couchbase-cxx-client/bin/init-cluster +84 -12
- package/deps/couchbase-cxx-client/bin/run-unit-tests +62 -6
- package/deps/couchbase-cxx-client/bin/travel-sample-index-v6.json +184 -0
- package/deps/couchbase-cxx-client/bin/travel-sample-index.json +188 -0
- package/deps/couchbase-cxx-client/cmake/CompilerWarnings.cmake +12 -4
- package/deps/couchbase-cxx-client/cmake/Documentation.cmake +4 -4
- package/deps/couchbase-cxx-client/cmake/OpenSSL.cmake +147 -7
- package/deps/couchbase-cxx-client/cmake/Testing.cmake +12 -4
- package/deps/couchbase-cxx-client/cmake/ThirdPartyDependencies.cmake +4 -0
- package/deps/couchbase-cxx-client/cmake/VersionInfo.cmake +39 -3
- package/deps/couchbase-cxx-client/cmake/build_config.hxx.in +3 -0
- package/deps/couchbase-cxx-client/cmake/test_openssl.cxx +7 -0
- package/deps/couchbase-cxx-client/core/bucket.cxx +183 -151
- package/deps/couchbase-cxx-client/core/bucket.hxx +23 -1
- package/deps/couchbase-cxx-client/core/cluster.hxx +18 -1
- package/deps/couchbase-cxx-client/core/cluster_options.cxx +2 -2
- package/deps/couchbase-cxx-client/core/cluster_options.hxx +4 -7
- package/deps/couchbase-cxx-client/core/cluster_options_fwd.hxx +26 -0
- package/deps/couchbase-cxx-client/core/config_profile.hxx +2 -65
- package/deps/couchbase-cxx-client/core/config_profiles.cxx +79 -0
- package/deps/couchbase-cxx-client/core/config_profiles.hxx +56 -0
- package/deps/couchbase-cxx-client/core/crypto/CMakeLists.txt +5 -1
- package/deps/couchbase-cxx-client/core/error_context/analytics.hxx +2 -1
- package/deps/couchbase-cxx-client/core/error_context/http.hxx +2 -1
- package/deps/couchbase-cxx-client/core/error_context/key_value.cxx +2 -1
- package/deps/couchbase-cxx-client/core/error_context/key_value.hxx +10 -12
- package/deps/couchbase-cxx-client/core/error_context/query.hxx +2 -1
- package/deps/couchbase-cxx-client/core/error_context/search.hxx +3 -2
- package/deps/couchbase-cxx-client/core/error_context/view.hxx +2 -1
- package/deps/couchbase-cxx-client/core/impl/analytics.cxx +237 -0
- package/deps/couchbase-cxx-client/core/impl/boolean_field_query.cxx +40 -0
- package/deps/couchbase-cxx-client/core/impl/boolean_query.cxx +62 -0
- package/deps/couchbase-cxx-client/core/impl/cluster.cxx +2 -1
- package/deps/couchbase-cxx-client/core/impl/collection_query_index_manager.cxx +3 -3
- package/deps/couchbase-cxx-client/core/impl/conjunction_query.cxx +51 -0
- package/deps/couchbase-cxx-client/core/impl/date_range.cxx +89 -0
- package/deps/couchbase-cxx-client/core/impl/date_range_facet.cxx +54 -0
- package/deps/couchbase-cxx-client/core/impl/date_range_facet_result.cxx +64 -0
- package/deps/couchbase-cxx-client/core/impl/date_range_query.cxx +125 -0
- package/deps/couchbase-cxx-client/core/impl/disjunction_query.cxx +51 -0
- package/deps/couchbase-cxx-client/core/impl/dns_srv_tracker.cxx +5 -3
- package/deps/couchbase-cxx-client/core/impl/encoded_search_facet.hxx +29 -0
- package/deps/couchbase-cxx-client/core/impl/encoded_search_query.hxx +29 -0
- package/deps/couchbase-cxx-client/core/impl/encoded_search_sort.hxx +29 -0
- package/deps/couchbase-cxx-client/core/impl/geo_bounding_box_query.cxx +46 -0
- package/deps/couchbase-cxx-client/core/impl/geo_distance_query.cxx +43 -0
- package/deps/couchbase-cxx-client/core/impl/geo_polygon_query.cxx +46 -0
- package/deps/couchbase-cxx-client/core/impl/get_all_query_indexes.cxx +3 -3
- package/deps/couchbase-cxx-client/core/impl/internal_date_range_facet_result.cxx +80 -0
- package/deps/couchbase-cxx-client/core/impl/internal_date_range_facet_result.hxx +48 -0
- package/deps/couchbase-cxx-client/core/impl/internal_numeric_range_facet_result.cxx +80 -0
- package/deps/couchbase-cxx-client/core/impl/internal_numeric_range_facet_result.hxx +48 -0
- package/deps/couchbase-cxx-client/core/impl/internal_search_error_context.cxx +141 -0
- package/deps/couchbase-cxx-client/core/impl/internal_search_error_context.hxx +61 -0
- package/deps/couchbase-cxx-client/core/impl/internal_search_meta_data.cxx +60 -0
- package/deps/couchbase-cxx-client/core/impl/internal_search_meta_data.hxx +41 -0
- package/deps/couchbase-cxx-client/core/impl/internal_search_result.cxx +84 -0
- package/deps/couchbase-cxx-client/core/impl/internal_search_result.hxx +43 -0
- package/deps/couchbase-cxx-client/core/impl/internal_search_row.cxx +82 -0
- package/deps/couchbase-cxx-client/core/impl/internal_search_row.hxx +56 -0
- package/deps/couchbase-cxx-client/core/impl/internal_search_row_location.hxx +32 -0
- package/deps/couchbase-cxx-client/core/impl/internal_search_row_locations.cxx +137 -0
- package/deps/couchbase-cxx-client/core/impl/internal_search_row_locations.hxx +45 -0
- package/deps/couchbase-cxx-client/core/impl/internal_term_facet_result.cxx +80 -0
- package/deps/couchbase-cxx-client/core/impl/internal_term_facet_result.hxx +48 -0
- package/deps/couchbase-cxx-client/core/impl/key_value_error_context.cxx +98 -0
- package/deps/couchbase-cxx-client/core/impl/match_all_query.cxx +35 -0
- package/deps/couchbase-cxx-client/core/impl/match_none_query.cxx +35 -0
- package/deps/couchbase-cxx-client/core/impl/match_phrase_query.cxx +43 -0
- package/deps/couchbase-cxx-client/core/impl/match_query.cxx +59 -0
- package/deps/couchbase-cxx-client/core/impl/numeric_range.cxx +49 -0
- package/deps/couchbase-cxx-client/core/impl/numeric_range_facet.cxx +54 -0
- package/deps/couchbase-cxx-client/core/impl/numeric_range_facet_result.cxx +64 -0
- package/deps/couchbase-cxx-client/core/impl/numeric_range_query.cxx +56 -0
- package/deps/couchbase-cxx-client/core/impl/phrase_query.cxx +42 -0
- package/deps/couchbase-cxx-client/core/impl/prefix_query.cxx +40 -0
- package/deps/couchbase-cxx-client/core/impl/query.cxx +19 -17
- package/deps/couchbase-cxx-client/core/impl/query_error_context.cxx +75 -0
- package/deps/couchbase-cxx-client/core/impl/query_string_query.cxx +37 -0
- package/deps/couchbase-cxx-client/core/impl/regexp_query.cxx +40 -0
- package/deps/couchbase-cxx-client/core/impl/search.cxx +191 -0
- package/deps/couchbase-cxx-client/core/impl/search_error_context.cxx +147 -0
- package/deps/couchbase-cxx-client/core/impl/search_meta_data.cxx +46 -0
- package/deps/couchbase-cxx-client/core/impl/search_result.cxx +66 -0
- package/deps/couchbase-cxx-client/core/impl/search_row.cxx +74 -0
- package/deps/couchbase-cxx-client/core/impl/search_row_location.cxx +64 -0
- package/deps/couchbase-cxx-client/core/impl/search_row_locations.cxx +66 -0
- package/deps/couchbase-cxx-client/core/impl/search_sort_field.cxx +104 -0
- package/deps/couchbase-cxx-client/core/impl/search_sort_id.cxx +43 -0
- package/deps/couchbase-cxx-client/core/impl/search_sort_score.cxx +43 -0
- package/deps/couchbase-cxx-client/core/impl/subdoc/lookup_in_macro.cxx +1 -0
- package/deps/couchbase-cxx-client/core/impl/subdoc/mutate_in_macro.cxx +1 -0
- package/deps/couchbase-cxx-client/core/impl/term_facet.cxx +36 -0
- package/deps/couchbase-cxx-client/core/impl/term_facet_result.cxx +64 -0
- package/deps/couchbase-cxx-client/core/impl/term_query.cxx +56 -0
- package/deps/couchbase-cxx-client/core/impl/term_range_query.cxx +57 -0
- package/deps/couchbase-cxx-client/core/impl/transaction_get_result.cxx +54 -0
- package/deps/couchbase-cxx-client/core/impl/wildcard_query.cxx +40 -0
- package/deps/couchbase-cxx-client/core/io/dns_client.cxx +225 -0
- package/deps/couchbase-cxx-client/core/io/dns_client.hxx +19 -188
- package/deps/couchbase-cxx-client/core/io/http_context.hxx +1 -1
- package/deps/couchbase-cxx-client/core/io/http_session.hxx +10 -0
- package/deps/couchbase-cxx-client/core/io/http_session_manager.hxx +5 -3
- package/deps/couchbase-cxx-client/core/io/mcbp_command.hxx +9 -2
- package/deps/couchbase-cxx-client/core/io/mcbp_session.cxx +79 -35
- package/deps/couchbase-cxx-client/core/io/mcbp_session.hxx +4 -3
- package/deps/couchbase-cxx-client/core/io/retry_orchestrator.hxx +3 -2
- package/deps/couchbase-cxx-client/core/json_string.hxx +5 -0
- package/deps/couchbase-cxx-client/core/meta/CMakeLists.txt +7 -5
- package/deps/couchbase-cxx-client/core/meta/version.cxx +37 -4
- package/deps/couchbase-cxx-client/core/mozilla_ca_bundle.hxx +39 -0
- package/deps/couchbase-cxx-client/core/operations/document_analytics.cxx +1 -0
- package/deps/couchbase-cxx-client/core/operations/document_analytics.hxx +1 -0
- package/deps/couchbase-cxx-client/core/operations/document_append.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_decrement.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_exists.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_get.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_get_and_lock.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_get_and_touch.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_get_projected.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_increment.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_insert.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_lookup_in.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_mutate_in.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_prepend.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_query.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/document_query.hxx +6 -0
- package/deps/couchbase-cxx-client/core/operations/document_remove.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_replace.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_search.cxx +9 -3
- package/deps/couchbase-cxx-client/core/operations/document_search.hxx +2 -2
- package/deps/couchbase-cxx-client/core/operations/document_touch.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_unlock.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_upsert.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_view.hxx +1 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_problem.hxx +2 -1
- package/deps/couchbase-cxx-client/core/operations/management/eventing_problem.hxx +2 -1
- package/deps/couchbase-cxx-client/core/platform/base64.cc +2 -1
- package/deps/couchbase-cxx-client/core/protocol/client_opcode.hxx +1 -0
- package/deps/couchbase-cxx-client/core/protocol/client_request.hxx +11 -2
- package/deps/couchbase-cxx-client/core/protocol/client_response.hxx +1 -0
- package/deps/couchbase-cxx-client/core/protocol/cmd_info.hxx +2 -1
- package/deps/couchbase-cxx-client/core/public_fwd.hxx +21 -0
- package/deps/couchbase-cxx-client/core/tls_verify_mode.hxx +26 -0
- package/deps/couchbase-cxx-client/core/topology/configuration.cxx +15 -2
- package/deps/couchbase-cxx-client/core/topology/configuration.hxx +5 -1
- package/deps/couchbase-cxx-client/core/transactions/active_transaction_record.hxx +2 -2
- package/deps/couchbase-cxx-client/core/transactions/atr_cleanup_entry.cxx +1 -0
- package/deps/couchbase-cxx-client/core/transactions/atr_ids.cxx +1 -1
- package/deps/couchbase-cxx-client/core/transactions/attempt_context_impl.cxx +78 -44
- package/deps/couchbase-cxx-client/core/transactions/attempt_context_impl.hxx +90 -59
- package/deps/couchbase-cxx-client/core/transactions/attempt_context_testing_hooks.cxx +93 -0
- package/deps/couchbase-cxx-client/core/transactions/attempt_context_testing_hooks.hxx +48 -75
- package/deps/couchbase-cxx-client/core/transactions/cleanup_testing_hooks.cxx +52 -0
- package/deps/couchbase-cxx-client/core/transactions/cleanup_testing_hooks.hxx +17 -31
- package/deps/couchbase-cxx-client/core/transactions/exceptions.cxx +0 -1
- package/deps/couchbase-cxx-client/core/transactions/exceptions.hxx +14 -11
- package/deps/couchbase-cxx-client/core/transactions/forward_compat.hxx +2 -2
- package/deps/couchbase-cxx-client/core/transactions/internal/transaction_context.hxx +14 -14
- package/deps/couchbase-cxx-client/core/transactions/internal/transaction_fields.hxx +1 -0
- package/deps/couchbase-cxx-client/core/transactions/internal/transactions_cleanup.hxx +7 -1
- package/deps/couchbase-cxx-client/core/transactions/staged_mutation.cxx +1 -1
- package/deps/couchbase-cxx-client/core/transactions/staged_mutation.hxx +12 -2
- package/deps/couchbase-cxx-client/core/transactions/transaction_context.cxx +9 -11
- package/deps/couchbase-cxx-client/core/transactions/transaction_get_result.cxx +41 -31
- package/deps/couchbase-cxx-client/core/transactions/transaction_get_result.hxx +69 -21
- package/deps/couchbase-cxx-client/core/transactions/transaction_links.hxx +13 -1
- package/deps/couchbase-cxx-client/core/transactions/transactions.cxx +5 -4
- package/deps/couchbase-cxx-client/core/transactions/transactions_cleanup.cxx +144 -155
- package/deps/couchbase-cxx-client/core/transactions/waitable_op_list.hxx +1 -0
- package/deps/couchbase-cxx-client/core/transactions.hxx +1 -1
- package/deps/couchbase-cxx-client/core/utils/connection_string.cxx +81 -46
- package/deps/couchbase-cxx-client/core/utils/connection_string.hxx +4 -3
- package/deps/couchbase-cxx-client/core/utils/crc32.hxx +3 -2
- package/deps/couchbase-cxx-client/core/utils/json.cxx +4 -1
- package/deps/couchbase-cxx-client/core/utils/json_streaming_lexer.hxx +2 -1
- package/deps/couchbase-cxx-client/core/utils/url_codec.cxx +2 -1
- package/deps/couchbase-cxx-client/couchbase/analytics_error_context.hxx +143 -0
- package/deps/couchbase-cxx-client/couchbase/analytics_meta_data.hxx +155 -0
- package/deps/couchbase-cxx-client/couchbase/analytics_metrics.hxx +163 -0
- package/deps/couchbase-cxx-client/couchbase/analytics_options.hxx +359 -0
- package/deps/couchbase-cxx-client/couchbase/analytics_result.hxx +102 -0
- package/deps/couchbase-cxx-client/couchbase/analytics_scan_consistency.hxx +46 -0
- package/deps/couchbase-cxx-client/couchbase/analytics_status.hxx +41 -0
- package/deps/couchbase-cxx-client/couchbase/analytics_warning.hxx +85 -0
- package/deps/couchbase-cxx-client/couchbase/behavior_options.hxx +10 -1
- package/deps/couchbase-cxx-client/couchbase/boolean_field_query.hxx +77 -0
- package/deps/couchbase-cxx-client/couchbase/boolean_query.hxx +223 -0
- package/deps/couchbase-cxx-client/couchbase/cluster.hxx +77 -3
- package/deps/couchbase-cxx-client/couchbase/cluster_options.hxx +10 -10
- package/deps/couchbase-cxx-client/couchbase/collection.hxx +22 -17
- package/deps/couchbase-cxx-client/couchbase/collection_query_index_manager.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/common_options.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/configuration_profile.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/configuration_profiles_registry.hxx +0 -1
- package/deps/couchbase-cxx-client/couchbase/conjunction_query.hxx +88 -0
- package/deps/couchbase-cxx-client/couchbase/create_primary_query_index_options.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/date_range.hxx +69 -0
- package/deps/couchbase-cxx-client/couchbase/date_range_facet.hxx +56 -0
- package/deps/couchbase-cxx-client/couchbase/date_range_facet_result.hxx +55 -0
- package/deps/couchbase-cxx-client/couchbase/date_range_query.hxx +265 -0
- package/deps/couchbase-cxx-client/couchbase/disjunction_query.hxx +109 -0
- package/deps/couchbase-cxx-client/couchbase/doc_id_query.hxx +111 -0
- package/deps/couchbase-cxx-client/couchbase/drop_primary_query_index_options.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/drop_query_index_options.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/error_context.hxx +17 -8
- package/deps/couchbase-cxx-client/couchbase/fmt/analytics_scan_consistency.hxx +52 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/analytics_status.hxx +76 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/cas.hxx +12 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/durability_level.hxx +6 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/key_value_error_map_attribute.hxx +94 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/key_value_extended_error_info.hxx +6 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/key_value_status_code.hxx +6 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/mutation_token.hxx +6 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/query_scan_consistency.hxx +6 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/query_status.hxx +6 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/retry_reason.hxx +6 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/search_scan_consistency.hxx +49 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/tls_verify_mode.hxx +6 -0
- package/deps/couchbase-cxx-client/couchbase/geo_bounding_box_query.hxx +107 -0
- package/deps/couchbase-cxx-client/couchbase/geo_distance_query.hxx +109 -0
- package/deps/couchbase-cxx-client/couchbase/geo_point.hxx +32 -0
- package/deps/couchbase-cxx-client/couchbase/geo_polygon_query.hxx +85 -0
- package/deps/couchbase-cxx-client/couchbase/get_all_query_indexes_options.hxx +5 -4
- package/deps/couchbase-cxx-client/couchbase/highlight_style.hxx +45 -0
- package/deps/couchbase-cxx-client/couchbase/key_value_error_context.hxx +7 -2
- package/deps/couchbase-cxx-client/couchbase/manager_error_context.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/match_all_query.hxx +43 -0
- package/deps/couchbase-cxx-client/couchbase/match_none_query.hxx +43 -0
- package/deps/couchbase-cxx-client/couchbase/match_operator.hxx +45 -0
- package/deps/couchbase-cxx-client/couchbase/match_phrase_query.hxx +108 -0
- package/deps/couchbase-cxx-client/couchbase/match_query.hxx +163 -0
- package/deps/couchbase-cxx-client/couchbase/numeric_range.hxx +58 -0
- package/deps/couchbase-cxx-client/couchbase/numeric_range_facet.hxx +56 -0
- package/deps/couchbase-cxx-client/couchbase/numeric_range_facet_result.hxx +55 -0
- package/deps/couchbase-cxx-client/couchbase/numeric_range_query.hxx +143 -0
- package/deps/couchbase-cxx-client/couchbase/phrase_query.hxx +93 -0
- package/deps/couchbase-cxx-client/couchbase/prefix_query.hxx +82 -0
- package/deps/couchbase-cxx-client/couchbase/query_error_context.hxx +3 -1
- package/deps/couchbase-cxx-client/couchbase/query_index_manager.hxx +4 -2
- package/deps/couchbase-cxx-client/couchbase/query_options.hxx +0 -1
- package/deps/couchbase-cxx-client/couchbase/query_string_query.hxx +72 -0
- package/deps/couchbase-cxx-client/couchbase/regexp_query.hxx +82 -0
- package/deps/couchbase-cxx-client/couchbase/scope.hxx +74 -1
- package/deps/couchbase-cxx-client/couchbase/search_date_range.hxx +68 -0
- package/deps/couchbase-cxx-client/couchbase/search_error_context.hxx +138 -0
- package/deps/couchbase-cxx-client/couchbase/search_facet.hxx +60 -0
- package/deps/couchbase-cxx-client/couchbase/search_facet_result.hxx +50 -0
- package/deps/couchbase-cxx-client/couchbase/search_meta_data.hxx +85 -0
- package/deps/couchbase-cxx-client/couchbase/search_metrics.hxx +127 -0
- package/deps/couchbase-cxx-client/couchbase/search_numeric_range.hxx +69 -0
- package/deps/couchbase-cxx-client/couchbase/search_options.hxx +509 -0
- package/deps/couchbase-cxx-client/couchbase/search_query.hxx +69 -0
- package/deps/couchbase-cxx-client/couchbase/search_result.hxx +77 -0
- package/deps/couchbase-cxx-client/couchbase/search_row.hxx +104 -0
- package/deps/couchbase-cxx-client/couchbase/search_row_location.hxx +55 -0
- package/deps/couchbase-cxx-client/couchbase/search_row_locations.hxx +86 -0
- package/deps/couchbase-cxx-client/couchbase/search_scan_consistency.hxx +34 -0
- package/deps/couchbase-cxx-client/couchbase/search_sort.hxx +58 -0
- package/deps/couchbase-cxx-client/couchbase/search_sort_field.hxx +117 -0
- package/deps/couchbase-cxx-client/couchbase/search_sort_field_missing.hxx +26 -0
- package/deps/couchbase-cxx-client/couchbase/search_sort_field_mode.hxx +27 -0
- package/deps/couchbase-cxx-client/couchbase/search_sort_field_type.hxx +28 -0
- package/deps/couchbase-cxx-client/couchbase/search_sort_id.hxx +60 -0
- package/deps/couchbase-cxx-client/couchbase/search_sort_score.hxx +60 -0
- package/deps/couchbase-cxx-client/couchbase/search_term_range.hxx +51 -0
- package/deps/couchbase-cxx-client/couchbase/security_options.hxx +3 -0
- package/deps/couchbase-cxx-client/couchbase/subdoc/array_add_unique.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/subdoc/array_append.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/subdoc/array_insert.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/subdoc/array_prepend.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/subdoc/count.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/subdoc/counter.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/subdoc/exists.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/subdoc/get.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/subdoc/insert.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/subdoc/remove.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/subdoc/replace.hxx +3 -1
- package/deps/couchbase-cxx-client/couchbase/subdoc/upsert.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/subdocument_error_context.hxx +4 -2
- package/deps/couchbase-cxx-client/couchbase/term_facet.hxx +48 -0
- package/deps/couchbase-cxx-client/couchbase/term_facet_result.hxx +55 -0
- package/deps/couchbase-cxx-client/couchbase/term_query.hxx +151 -0
- package/deps/couchbase-cxx-client/couchbase/term_range_query.hxx +142 -0
- package/deps/couchbase-cxx-client/couchbase/tracing/request_span.hxx +63 -0
- package/deps/couchbase-cxx-client/couchbase/tracing/request_tracer.hxx +2 -40
- package/deps/couchbase-cxx-client/couchbase/transaction_op_error_context.hxx +4 -4
- package/deps/couchbase-cxx-client/couchbase/transactions/async_attempt_context.hxx +93 -14
- package/deps/couchbase-cxx-client/couchbase/transactions/attempt_context.hxx +88 -15
- package/deps/couchbase-cxx-client/couchbase/transactions/transaction_get_result.hxx +55 -35
- package/deps/couchbase-cxx-client/couchbase/transactions/transaction_keyspace.hxx +11 -1
- package/deps/couchbase-cxx-client/couchbase/transactions/transaction_options.hxx +79 -8
- package/deps/couchbase-cxx-client/couchbase/transactions/transaction_query_options.hxx +128 -15
- package/deps/couchbase-cxx-client/couchbase/transactions/transaction_query_result.hxx +6 -21
- package/deps/couchbase-cxx-client/couchbase/transactions/transaction_result.hxx +1 -2
- package/deps/couchbase-cxx-client/couchbase/transactions/transactions_cleanup_config.hxx +5 -3
- package/deps/couchbase-cxx-client/couchbase/transactions/transactions_config.hxx +9 -5
- package/deps/couchbase-cxx-client/couchbase/transactions/transactions_query_config.hxx +6 -3
- package/deps/couchbase-cxx-client/couchbase/transactions.hxx +37 -3
- package/deps/couchbase-cxx-client/couchbase/wildcard_query.hxx +83 -0
- package/deps/couchbase-cxx-client/docs/Doxyfile.in +325 -224
- package/deps/couchbase-cxx-client/docs/cbc-analytics.md +171 -0
- package/deps/couchbase-cxx-client/docs/cbc-get.md +161 -0
- package/deps/couchbase-cxx-client/docs/cbc-pillowfight.md +168 -0
- package/deps/couchbase-cxx-client/docs/cbc-query.md +179 -0
- package/deps/couchbase-cxx-client/docs/cbc.md +46 -0
- package/deps/couchbase-cxx-client/docs/cli.hxx +33 -0
- package/deps/couchbase-cxx-client/docs/doxygen-awesome.css +474 -89
- package/deps/couchbase-cxx-client/docs/mainpage.hxx +46 -8
- package/deps/couchbase-cxx-client/docs/stability.hxx +15 -0
- package/deps/couchbase-cxx-client/examples/async_game_server.cxx +56 -54
- package/deps/couchbase-cxx-client/examples/distributed_mutex.cxx +2 -0
- package/deps/couchbase-cxx-client/examples/game_server.cxx +9 -10
- package/deps/couchbase-cxx-client/test/CMakeLists.txt +10 -7
- package/deps/couchbase-cxx-client/test/benchmark_helper_integration.hxx +2 -2
- package/deps/couchbase-cxx-client/test/data/search_beers_dataset.json +70 -0
- package/deps/couchbase-cxx-client/test/data/search_beers_index_params.json +108 -0
- package/deps/couchbase-cxx-client/test/test_helper.hxx +6 -6
- package/deps/couchbase-cxx-client/test/test_integration_analytics.cxx +314 -16
- package/deps/couchbase-cxx-client/test/test_integration_collections.cxx +7 -3
- package/deps/couchbase-cxx-client/test/test_integration_connect.cxx +7 -3
- package/deps/couchbase-cxx-client/test/test_integration_crud.cxx +19 -2
- package/deps/couchbase-cxx-client/test/test_integration_diagnostics.cxx +11 -5
- package/deps/couchbase-cxx-client/test/test_integration_durability.cxx +12 -7
- package/deps/couchbase-cxx-client/test/test_integration_examples.cxx +454 -0
- package/deps/couchbase-cxx-client/test/test_integration_management.cxx +162 -94
- package/deps/couchbase-cxx-client/test/test_integration_query.cxx +68 -10
- package/deps/couchbase-cxx-client/test/test_integration_range_scan.cxx +12 -12
- package/deps/couchbase-cxx-client/test/test_integration_read_replica.cxx +48 -11
- package/deps/couchbase-cxx-client/test/test_integration_search.cxx +621 -0
- package/deps/couchbase-cxx-client/test/test_integration_subdoc.cxx +62 -11
- package/deps/couchbase-cxx-client/test/test_integration_tracer.cxx +5 -0
- package/deps/couchbase-cxx-client/test/test_integration_transcoders.cxx +13 -5
- package/deps/couchbase-cxx-client/test/test_transaction_context.cxx +550 -0
- package/deps/couchbase-cxx-client/test/test_transaction_examples.cxx +195 -0
- package/deps/couchbase-cxx-client/test/test_transaction_public_async_api.cxx +393 -0
- package/deps/couchbase-cxx-client/test/test_transaction_public_blocking_api.cxx +653 -0
- package/deps/couchbase-cxx-client/test/test_transaction_simple.cxx +984 -0
- package/deps/couchbase-cxx-client/test/test_transaction_simple_async.cxx +970 -0
- package/deps/couchbase-cxx-client/test/test_unit_config_profiles.cxx +13 -13
- package/deps/couchbase-cxx-client/test/test_unit_connection_string.cxx +64 -0
- package/deps/couchbase-cxx-client/test/test_unit_json_transcoder.cxx +4 -0
- package/deps/couchbase-cxx-client/test/test_unit_search.cxx +427 -0
- package/deps/couchbase-cxx-client/test/test_unit_transaction_utils.cxx +113 -0
- package/deps/couchbase-cxx-client/test/test_unit_utils.cxx +8 -4
- package/deps/couchbase-cxx-client/test/utils/CMakeLists.txt +13 -9
- package/deps/couchbase-cxx-client/test/utils/integration_shortcuts.hxx +3 -3
- package/deps/couchbase-cxx-client/test/utils/integration_test_guard.cxx +20 -9
- package/deps/couchbase-cxx-client/test/utils/logger.cxx +3 -1
- package/deps/couchbase-cxx-client/test/utils/server_version.hxx +39 -13
- package/deps/couchbase-cxx-client/test/utils/test_context.cxx +8 -0
- package/deps/couchbase-cxx-client/test/utils/test_data.cxx +41 -0
- package/deps/couchbase-cxx-client/test/utils/test_data.hxx +29 -0
- package/deps/couchbase-cxx-client/test/utils/wait_until.cxx +61 -0
- package/deps/couchbase-cxx-client/test/utils/wait_until.hxx +8 -1
- package/deps/couchbase-cxx-client/third_party/catch2/.bazelrc +10 -0
- package/deps/couchbase-cxx-client/third_party/catch2/.conan/build.py +4 -4
- package/deps/couchbase-cxx-client/third_party/catch2/.conan/test_package/CMakeLists.txt +5 -4
- package/deps/couchbase-cxx-client/third_party/catch2/.conan/test_package/conanfile.py +3 -2
- package/deps/couchbase-cxx-client/third_party/catch2/.conan/test_package/test_package.cpp +1 -3
- package/deps/couchbase-cxx-client/third_party/catch2/.github/FUNDING.yml +1 -0
- package/deps/couchbase-cxx-client/third_party/catch2/.github/workflows/linux-bazel-builds.yml +24 -0
- package/deps/couchbase-cxx-client/third_party/catch2/.github/workflows/linux-meson-builds.yml +43 -0
- package/deps/couchbase-cxx-client/third_party/catch2/.github/workflows/linux-other-builds.yml +104 -0
- package/deps/couchbase-cxx-client/third_party/catch2/.github/workflows/linux-simple-builds.yml +122 -0
- package/deps/couchbase-cxx-client/third_party/catch2/.github/workflows/mac-builds.yml +52 -0
- package/deps/couchbase-cxx-client/third_party/catch2/.github/workflows/validate-header-guards.yml +36 -0
- package/deps/couchbase-cxx-client/third_party/catch2/.github/workflows/windows-simple-builds.yml +37 -0
- package/deps/couchbase-cxx-client/third_party/catch2/BUILD.bazel +83 -8
- package/deps/couchbase-cxx-client/third_party/catch2/CMake/CatchConfigOptions.cmake +79 -0
- package/deps/couchbase-cxx-client/third_party/catch2/CMake/CatchMiscFunctions.cmake +120 -0
- package/deps/couchbase-cxx-client/third_party/catch2/CMake/catch2-with-main.pc.in +10 -0
- package/deps/couchbase-cxx-client/third_party/catch2/CMake/catch2.pc.in +5 -1
- package/deps/couchbase-cxx-client/third_party/catch2/CMakeLists.txt +98 -152
- package/deps/couchbase-cxx-client/third_party/catch2/CMakePresets.json +25 -0
- package/deps/couchbase-cxx-client/third_party/catch2/Doxyfile +2484 -0
- package/deps/couchbase-cxx-client/third_party/catch2/README.md +83 -17
- package/deps/couchbase-cxx-client/third_party/catch2/SECURITY.md +19 -0
- package/deps/couchbase-cxx-client/third_party/catch2/WORKSPACE.bazel +16 -0
- package/deps/couchbase-cxx-client/third_party/catch2/appveyor.yml +55 -73
- package/deps/couchbase-cxx-client/third_party/catch2/codecov.yml +3 -6
- package/deps/couchbase-cxx-client/third_party/catch2/conanfile.py +44 -14
- package/deps/couchbase-cxx-client/third_party/catch2/data/artwork/catch2-logo-small-with-background.png +0 -0
- package/deps/couchbase-cxx-client/third_party/catch2/docs/Readme.md +18 -16
- package/deps/couchbase-cxx-client/third_party/catch2/docs/assertions.md +45 -64
- package/deps/couchbase-cxx-client/third_party/catch2/docs/benchmarks.md +3 -6
- package/deps/couchbase-cxx-client/third_party/catch2/docs/ci-and-misc.md +27 -29
- package/deps/couchbase-cxx-client/third_party/catch2/docs/cmake-integration.md +157 -35
- package/deps/couchbase-cxx-client/third_party/catch2/docs/command-line.md +232 -65
- package/deps/couchbase-cxx-client/third_party/catch2/docs/commercial-users.md +14 -13
- package/deps/couchbase-cxx-client/third_party/catch2/docs/comparing-floating-point-numbers.md +192 -0
- package/deps/couchbase-cxx-client/third_party/catch2/docs/configuration.md +48 -54
- package/deps/couchbase-cxx-client/third_party/catch2/docs/contributing.md +150 -38
- package/deps/couchbase-cxx-client/third_party/catch2/docs/deprecations.md +14 -118
- package/deps/couchbase-cxx-client/third_party/catch2/docs/event-listeners.md +31 -62
- package/deps/couchbase-cxx-client/third_party/catch2/docs/faq.md +94 -0
- package/deps/couchbase-cxx-client/third_party/catch2/docs/generators.md +14 -10
- package/deps/couchbase-cxx-client/third_party/catch2/docs/limitations.md +34 -36
- package/deps/couchbase-cxx-client/third_party/catch2/docs/list-of-examples.md +0 -3
- package/deps/couchbase-cxx-client/third_party/catch2/docs/logging.md +2 -2
- package/deps/couchbase-cxx-client/third_party/catch2/docs/matchers.md +355 -122
- package/deps/couchbase-cxx-client/third_party/catch2/docs/migrate-v2-to-v3.md +98 -0
- package/deps/couchbase-cxx-client/third_party/catch2/docs/opensource-users.md +43 -13
- package/deps/couchbase-cxx-client/third_party/catch2/docs/other-macros.md +19 -18
- package/deps/couchbase-cxx-client/third_party/catch2/docs/own-main.md +50 -49
- package/deps/couchbase-cxx-client/third_party/catch2/docs/release-notes.md +375 -6
- package/deps/couchbase-cxx-client/third_party/catch2/docs/release-process.md +9 -16
- package/deps/couchbase-cxx-client/third_party/catch2/docs/reporter-events.md +175 -0
- package/deps/couchbase-cxx-client/third_party/catch2/docs/reporters.md +191 -25
- package/deps/couchbase-cxx-client/third_party/catch2/docs/skipping-passing-failing.md +129 -0
- package/deps/couchbase-cxx-client/third_party/catch2/docs/test-cases-and-sections.md +91 -20
- package/deps/couchbase-cxx-client/third_party/catch2/docs/test-fixtures.md +28 -9
- package/deps/couchbase-cxx-client/third_party/catch2/docs/tostring.md +3 -3
- package/deps/couchbase-cxx-client/third_party/catch2/docs/tutorial.md +87 -139
- package/deps/couchbase-cxx-client/third_party/catch2/docs/usage-tips.md +100 -0
- package/deps/couchbase-cxx-client/third_party/catch2/docs/why-catch.md +24 -11
- package/deps/couchbase-cxx-client/third_party/catch2/examples/010-TestCase.cpp +4 -7
- package/deps/couchbase-cxx-client/third_party/catch2/examples/020-TestCase-1.cpp +3 -9
- package/deps/couchbase-cxx-client/third_party/catch2/examples/020-TestCase-2.cpp +2 -2
- package/deps/couchbase-cxx-client/third_party/catch2/examples/030-Asn-Require-Check.cpp +5 -5
- package/deps/couchbase-cxx-client/third_party/catch2/examples/100-Fix-Section.cpp +5 -4
- package/deps/couchbase-cxx-client/third_party/catch2/examples/110-Fix-ClassFixture.cpp +7 -4
- package/deps/couchbase-cxx-client/third_party/catch2/examples/120-Bdd-ScenarioGivenWhenThen.cpp +4 -4
- package/deps/couchbase-cxx-client/third_party/catch2/examples/210-Evt-EventListeners.cpp +51 -44
- package/deps/couchbase-cxx-client/third_party/catch2/examples/231-Cfg-OutputStreams.cpp +3 -4
- package/deps/couchbase-cxx-client/third_party/catch2/examples/300-Gen-OwnGenerator.cpp +13 -3
- package/deps/couchbase-cxx-client/third_party/catch2/examples/301-Gen-MapTypeConversion.cpp +9 -7
- package/deps/couchbase-cxx-client/third_party/catch2/examples/302-Gen-Table.cpp +4 -3
- package/deps/couchbase-cxx-client/third_party/catch2/examples/310-Gen-VariablesInGenerators.cpp +3 -1
- package/deps/couchbase-cxx-client/third_party/catch2/examples/311-Gen-CustomCapture.cpp +3 -1
- package/deps/couchbase-cxx-client/third_party/catch2/examples/CMakeLists.txt +29 -126
- package/deps/couchbase-cxx-client/third_party/catch2/extras/Catch.cmake +279 -0
- package/deps/couchbase-cxx-client/third_party/catch2/extras/CatchAddTests.cmake +187 -0
- package/deps/couchbase-cxx-client/third_party/catch2/extras/CatchShardTests.cmake +74 -0
- package/deps/couchbase-cxx-client/third_party/catch2/extras/CatchShardTestsImpl.cmake +52 -0
- package/deps/couchbase-cxx-client/third_party/catch2/extras/catch_amalgamated.cpp +10655 -0
- package/deps/couchbase-cxx-client/third_party/catch2/extras/catch_amalgamated.hpp +12972 -0
- package/deps/couchbase-cxx-client/third_party/catch2/fuzzing/CMakeLists.txt +20 -0
- package/deps/couchbase-cxx-client/third_party/catch2/fuzzing/NullOStream.cpp +10 -0
- package/deps/couchbase-cxx-client/third_party/catch2/fuzzing/NullOStream.h +20 -0
- package/deps/couchbase-cxx-client/third_party/catch2/fuzzing/build_fuzzers.sh +33 -0
- package/deps/couchbase-cxx-client/third_party/catch2/fuzzing/fuzz_TestSpecParser.cpp +16 -0
- package/deps/couchbase-cxx-client/third_party/catch2/fuzzing/fuzz_XmlWriter.cpp +16 -0
- package/deps/couchbase-cxx-client/third_party/catch2/fuzzing/fuzz_textflow.cpp +47 -0
- package/deps/couchbase-cxx-client/third_party/catch2/mdsnippets.json +9 -0
- package/deps/couchbase-cxx-client/third_party/catch2/meson.build +17 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/CMakeLists.txt +510 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_benchmark.hpp +147 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_benchmark_all.hpp +46 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_chronometer.cpp +17 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_chronometer.hpp +74 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_clock.hpp +39 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_constructor.hpp +82 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_environment.hpp +37 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_estimate.hpp +30 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_execution_plan.hpp +58 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_optimizer.hpp +78 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_outlier_classification.hpp +29 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_sample_analysis.hpp +49 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_analyse.hpp +79 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_benchmark_function.cpp +17 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_benchmark_function.hpp +107 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_benchmark_stats.hpp +64 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_benchmark_stats_fwd.hpp +23 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_complete_invoke.hpp +58 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_estimate_clock.hpp +121 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_measure.hpp +32 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_repeat.hpp +36 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_run_for_at_least.cpp +31 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_run_for_at_least.hpp +65 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_stats.cpp +257 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_stats.hpp +144 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_timing.hpp +31 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_all.hpp +127 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_approx.cpp +85 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_approx.hpp +128 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_assertion_info.hpp +28 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_assertion_result.cpp +105 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_assertion_result.hpp +60 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_config.cpp +247 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_config.hpp +153 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_get_random_seed.cpp +18 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_get_random_seed.hpp +18 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_message.cpp +116 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_message.hpp +148 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_registry_hub.cpp +105 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_section_info.hpp +42 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_session.cpp +363 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_session.hpp +62 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_tag_alias.hpp +29 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_tag_alias_autoregistrar.cpp +24 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_tag_alias_autoregistrar.hpp +29 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_template_test_macros.hpp +124 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_test_case_info.cpp +247 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_test_case_info.hpp +131 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_test_macros.hpp +226 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_test_spec.cpp +138 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_test_spec.hpp +119 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_timer.cpp +37 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_timer.hpp +27 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_tostring.cpp +254 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_tostring.hpp +668 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_totals.cpp +65 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_totals.hpp +41 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_translate_exception.cpp +20 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_translate_exception.hpp +88 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_user_config.hpp.in +210 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_version.cpp +43 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_version.hpp +39 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_version_macros.hpp +15 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generator_exception.cpp +17 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generator_exception.hpp +31 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generators.cpp +42 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generators.hpp +250 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generators_adapters.hpp +241 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generators_all.hpp +30 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generators_random.cpp +13 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generators_random.hpp +98 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generators_range.hpp +110 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_all.hpp +37 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_capture.cpp +13 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_capture.hpp +109 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_config.cpp +13 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_config.hpp +100 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_enum_values_registry.hpp +47 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_exception.cpp +14 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_exception.hpp +36 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_generatortracker.cpp +32 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_generatortracker.hpp +90 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_registry_hub.cpp +14 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_registry_hub.hpp +66 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_reporter.cpp +101 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_reporter.hpp +224 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_reporter_factory.cpp +14 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_reporter_factory.hpp +45 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_tag_alias_registry.hpp +29 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_test_invoker.hpp +21 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_testcase.cpp +13 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_testcase.hpp +36 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_assertion_handler.cpp +82 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_assertion_handler.hpp +68 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_case_insensitive_comparisons.cpp +35 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_case_insensitive_comparisons.hpp +30 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_case_sensitive.hpp +17 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_clara.cpp +448 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_clara.hpp +702 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_commandline.cpp +313 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_commandline.hpp +21 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_compare_traits.hpp +75 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_compiler_capabilities.hpp +430 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_config_android_logwrite.hpp +33 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_config_counter.hpp +32 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_config_uncaught_exceptions.hpp +44 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_config_wchar.hpp +33 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_console_colour.cpp +282 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_console_colour.hpp +141 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_console_width.hpp +19 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_container_nonmembers.hpp +73 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_context.cpp +41 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_context.hpp +51 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_debug_console.cpp +45 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_debug_console.hpp +17 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_debugger.cpp +120 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_debugger.hpp +67 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_decomposer.cpp +23 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_decomposer.hpp +340 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_enforce.cpp +41 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_enforce.hpp +54 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_enum_values_registry.cpp +73 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_enum_values_registry.hpp +36 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_errno_guard.cpp +16 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_errno_guard.hpp +27 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_exception_translator_registry.cpp +84 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_exception_translator_registry.hpp +30 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_fatal_condition_handler.cpp +243 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_fatal_condition_handler.hpp +69 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_floating_point_helpers.cpp +32 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_floating_point_helpers.hpp +103 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_getenv.cpp +37 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_getenv.hpp +20 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_is_permutation.hpp +138 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_istream.cpp +159 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_istream.hpp +54 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_lazy_expr.cpp +29 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_lazy_expr.hpp +40 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_leak_detector.cpp +38 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_leak_detector.hpp +19 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_list.cpp +123 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_list.hpp +43 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_logical_traits.hpp +44 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_main.cpp +39 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_message_info.cpp +25 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_message_info.hpp +42 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_meta.hpp +47 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_move_and_forward.hpp +19 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_noncopyable.hpp +28 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_optional.hpp +100 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_output_redirect.cpp +146 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_output_redirect.hpp +118 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_parse_numbers.cpp +52 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_parse_numbers.hpp +26 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_platform.hpp +37 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_polyfills.cpp +34 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_polyfills.hpp +16 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_preprocessor.hpp +237 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_preprocessor_remove_parens.hpp +19 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_random_number_generator.cpp +70 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_random_number_generator.hpp +59 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_random_seed_generation.cpp +34 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_random_seed_generation.hpp +26 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_reporter_registry.cpp +88 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_reporter_registry.hpp +55 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_reporter_spec_parser.cpp +173 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_reporter_spec_parser.hpp +85 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_result_type.cpp +26 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_result_type.hpp +57 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_reusable_string_stream.cpp +62 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_reusable_string_stream.hpp +57 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_run_context.cpp +688 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_run_context.hpp +160 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_section.cpp +60 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_section.hpp +53 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_sharding.hpp +42 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_singletons.cpp +36 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_singletons.hpp +45 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_source_line_info.cpp +33 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_source_line_info.hpp +37 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_startup_exception_registry.cpp +29 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_startup_exception_registry.hpp +29 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_stdstreams.cpp +24 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_stdstreams.hpp +22 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_stream_end_stop.hpp +30 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_string_manip.cpp +104 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_string_manip.hpp +61 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_stringref.cpp +66 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_stringref.hpp +121 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_tag_alias_registry.cpp +55 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_tag_alias_registry.hpp +33 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_template_test_registry.hpp +337 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_case_info_hasher.cpp +39 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_case_info_hasher.hpp +29 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_case_registry_impl.cpp +146 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_case_registry_impl.hpp +62 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_case_tracker.cpp +239 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_case_tracker.hpp +244 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_failure_exception.cpp +31 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_failure_exception.hpp +34 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_macro_impl.hpp +159 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_registry.cpp +82 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_registry.hpp +132 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_run_info.hpp +22 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_spec_parser.cpp +239 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_spec_parser.hpp +81 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_textflow.cpp +255 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_textflow.hpp +169 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_to_string.hpp +29 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_uncaught_exceptions.cpp +26 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_uncaught_exceptions.hpp +15 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_unique_name.hpp +20 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_unique_ptr.hpp +118 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_void_type.hpp +25 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_wildcard_pattern.cpp +47 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_wildcard_pattern.hpp +38 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_windows_h_proxy.hpp +28 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_xmlwriter.cpp +348 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_xmlwriter.hpp +152 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers.cpp +25 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers.hpp +237 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_all.hpp +36 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_container_properties.cpp +34 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_container_properties.hpp +90 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_contains.hpp +102 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_exception.cpp +26 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_exception.hpp +61 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_floating_point.cpp +241 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_floating_point.hpp +94 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_predicate.cpp +17 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_predicate.hpp +59 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_quantifiers.cpp +24 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_quantifiers.hpp +165 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_range_equals.hpp +144 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_string.cpp +114 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_string.hpp +85 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_templated.cpp +41 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_templated.hpp +296 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_vector.hpp +194 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/internal/catch_matchers_impl.cpp +25 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/internal/catch_matchers_impl.hpp +83 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/meson.build +368 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_automake.cpp +37 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_automake.hpp +38 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_common_base.cpp +49 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_common_base.hpp +79 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_compact.cpp +254 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_compact.hpp +39 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_console.cpp +656 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_console.hpp +67 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_cumulative_base.cpp +159 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_cumulative_base.hpp +151 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_event_listener.cpp +40 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_event_listener.hpp +60 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_helpers.cpp +343 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_helpers.hpp +95 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_junit.cpp +309 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_junit.hpp +58 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_multi.cpp +197 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_multi.hpp +72 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_registrars.cpp +36 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_registrars.hpp +131 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_sonarqube.cpp +162 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_sonarqube.hpp +61 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_streaming_base.cpp +23 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_streaming_base.hpp +73 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_tap.cpp +229 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_tap.hpp +43 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_teamcity.cpp +177 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_teamcity.hpp +66 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_xml.cpp +336 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_xml.hpp +66 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporters_all.hpp +40 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/CMakeLists.txt +665 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/CMakeLists.txt +554 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/ToDo.txt +10 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X01-PrefixedMacros.cpp +97 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X02-DisabledMacros.cpp +65 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X03-DisabledExceptions-DefaultHandler.cpp +39 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X04-DisabledExceptions-CustomHandler.cpp +40 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X05-DeferredStaticChecks.cpp +21 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X10-FallbackStringifier.cpp +35 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X11-DisableStringification.cpp +27 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X12-CustomDebugBreakMacro.cpp +26 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X21-PartialTestCaseEvents.cpp +74 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X22-BenchmarksInCumulativeReporter.cpp +79 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X23-CasingInReporterNames.cpp +41 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X24-ListenerStdoutCaptureInMultireporter.cpp +40 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X25-ListenerCanAskForCapturedStdout.cpp +47 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X26-ReporterPreferencesForPassingAssertionsIsRespected.cpp +52 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X27-CapturedStdoutInTestCaseEvents.cpp +82 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X28-ListenersGetEventsBeforeReporters.cpp +99 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X29-CustomArgumentsForReporters.cpp +59 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X30-BazelReporter.cpp +17 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X31-DuplicatedTestCases.cpp +16 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X32-DuplicatedTestCasesDifferentTags.cpp +17 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X33-DuplicatedTestCaseMethods.cpp +22 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X34-DuplicatedTestCaseMethodsDifferentFixtures.cpp +27 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X35-DuplicatedReporterNames.cpp +31 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X90-WindowsHeaderInclusion.cpp +21 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X91-AmalgamatedCatch.cpp +38 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X92-NoTests.cpp +11 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X93-AllSkipped.cpp +16 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/automake.sw.approved.txt +420 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/automake.sw.multi.approved.txt +409 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/compact.sw.approved.txt +2544 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/compact.sw.multi.approved.txt +2533 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/console.std.approved.txt +1538 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/console.sw.approved.txt +18236 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/console.sw.multi.approved.txt +18225 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/console.swa4.approved.txt +956 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/default.sw.multi.approved.txt +11 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/junit.sw.approved.txt +2052 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/junit.sw.multi.approved.txt +2051 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/sonarqube.sw.approved.txt +2071 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/sonarqube.sw.multi.approved.txt +2070 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/tap.sw.approved.txt +4481 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/tap.sw.multi.approved.txt +4470 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/teamcity.sw.approved.txt +998 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/teamcity.sw.multi.approved.txt +997 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/xml.sw.approved.txt +21208 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/xml.sw.multi.approved.txt +21207 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Algorithms.tests.cpp +94 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Clara.tests.cpp +73 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/CmdLine.tests.cpp +467 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/CmdLineHelpers.tests.cpp +111 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/ColourImpl.tests.cpp +64 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Details.tests.cpp +131 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/FloatingPoint.tests.cpp +74 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp +546 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp +447 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Parse.tests.cpp +38 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/PartTracker.tests.cpp +254 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/RandomNumberGeneration.tests.cpp +62 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Reporters.tests.cpp +328 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Sharding.tests.cpp +45 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Stream.tests.cpp +32 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/String.tests.cpp +212 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/StringManip.tests.cpp +83 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Tag.tests.cpp +104 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/TestCaseInfoHasher.tests.cpp +72 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/TestSpec.tests.cpp +365 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/TestSpecParser.tests.cpp +55 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/TextFlow.tests.cpp +200 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/ToString.tests.cpp +97 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Traits.tests.cpp +45 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/UniquePtr.tests.cpp +141 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Xml.tests.cpp +183 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/TestRegistrations.cpp +181 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/TimingTests/Sleep.tests.cpp +24 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Approx.tests.cpp +218 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/BDD.tests.cpp +106 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Benchmark.tests.cpp +173 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Class.tests.cpp +133 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Compilation.tests.cpp +355 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Condition.tests.cpp +334 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Decomposition.tests.cpp +41 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/EnumToString.tests.cpp +108 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Exception.tests.cpp +204 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Generators.tests.cpp +313 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Matchers.tests.cpp +1144 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/MatchersRanges.tests.cpp +917 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Message.tests.cpp +287 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Misc.tests.cpp +553 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Skip.tests.cpp +73 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringByte.tests.cpp +23 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringChrono.tests.cpp +51 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringGeneral.tests.cpp +211 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringOptional.tests.cpp +31 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringPair.tests.cpp +38 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringTuple.tests.cpp +54 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringVariant.tests.cpp +99 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringVector.tests.cpp +94 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringWhich.tests.cpp +186 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Tricky.tests.cpp +380 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/VariadicMacros.tests.cpp +29 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/helpers/parse_test_spec.cpp +22 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/helpers/parse_test_spec.hpp +20 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/helpers/range_test_helpers.hpp +210 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/helpers/type_with_lit_0_comparisons.hpp +44 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/ConfigureTestsCommon.py +75 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testBazelReporter.py +104 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testBazelSharding.py +75 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testConfigureDefaultReporter.py +41 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testConfigureDisable.py +48 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testConfigureDisableStringification.py +44 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testConfigureExperimentalRedirect.py +49 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testPartialTestCaseEvent.py +79 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testRandomOrder.py +77 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testSharding.py +165 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/meson.build +76 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/misc/appveyorBuildConfigurationScript.bat +21 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/misc/appveyorMergeCoverageScript.py +9 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/misc/appveyorTestRunScript.bat +17 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/misc/coverage-helper.cpp +142 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/misc/installOpenCppCoverage.ps1 +19 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/approvalTests.py +243 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/approve.py +31 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/buildAndTest.cmd +17 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/buildAndTest.sh +19 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/checkConvenienceHeaders.py +151 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/checkDuplicateFilenames.py +14 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/checkLicense.py +45 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/developBuild.py +9 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/extractFeaturesFromReleaseNotes.py +92 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/fixWhitespace.py +51 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/generateAmalgamatedFiles.py +129 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/majorRelease.py +9 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/minorRelease.py +9 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/patchRelease.py +9 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/releaseCommon.py +143 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/scriptCommon.py +4 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/updateDocumentSnippets.py +23 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/updateDocumentToC.py +447 -0
- package/deps/couchbase-cxx-client/third_party/snappy/.github/workflows/build.yml +135 -0
- package/deps/couchbase-cxx-client/third_party/snappy/.gitmodules +6 -0
- package/deps/couchbase-cxx-client/third_party/snappy/CMakeLists.txt +150 -27
- package/deps/couchbase-cxx-client/third_party/snappy/CONTRIBUTING.md +9 -4
- package/deps/couchbase-cxx-client/third_party/snappy/NEWS +12 -0
- package/deps/couchbase-cxx-client/third_party/snappy/README.md +52 -35
- package/deps/couchbase-cxx-client/third_party/snappy/cmake/config.h.in +28 -24
- package/deps/couchbase-cxx-client/third_party/snappy/snappy-internal.h +189 -25
- package/deps/couchbase-cxx-client/third_party/snappy/snappy-sinksource.cc +26 -9
- package/deps/couchbase-cxx-client/third_party/snappy/snappy-sinksource.h +11 -11
- package/deps/couchbase-cxx-client/third_party/snappy/snappy-stubs-internal.cc +1 -1
- package/deps/couchbase-cxx-client/third_party/snappy/snappy-stubs-internal.h +227 -308
- package/deps/couchbase-cxx-client/third_party/snappy/snappy-stubs-public.h.in +0 -11
- package/deps/couchbase-cxx-client/third_party/snappy/snappy-test.cc +88 -198
- package/deps/couchbase-cxx-client/third_party/snappy/snappy-test.h +102 -285
- package/deps/couchbase-cxx-client/third_party/snappy/snappy.cc +1176 -410
- package/deps/couchbase-cxx-client/third_party/snappy/snappy.h +19 -4
- package/deps/couchbase-cxx-client/third_party/snappy/snappy_benchmark.cc +378 -0
- package/deps/couchbase-cxx-client/third_party/snappy/snappy_compress_fuzzer.cc +3 -2
- package/deps/couchbase-cxx-client/third_party/snappy/snappy_test_data.cc +57 -0
- package/deps/couchbase-cxx-client/third_party/snappy/snappy_test_data.h +68 -0
- package/deps/couchbase-cxx-client/third_party/snappy/snappy_test_tool.cc +471 -0
- package/deps/couchbase-cxx-client/third_party/snappy/snappy_uncompress_fuzzer.cc +3 -2
- package/deps/couchbase-cxx-client/third_party/snappy/snappy_unittest.cc +170 -666
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.github/workflows/build-and-test.yml +38 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.github/workflows/pylint.yml +26 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.github/workflows/test_bindings.yml +24 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.travis-libcxx-setup.sh +28 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.travis.yml +231 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.ycm_extra_conf.py +115 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/AUTHORS +58 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/BUILD.bazel +44 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/CMakeLists.txt +287 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/CONTRIBUTING.md +58 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/CONTRIBUTORS +83 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/LICENSE +202 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/README.md +1323 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/WORKSPACE +51 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/_config.yml +1 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/appveyor.yml +50 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/BUILD +3 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/build_defs.bzl +25 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/google_benchmark/BUILD +38 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/google_benchmark/__init__.py +156 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/google_benchmark/benchmark.cc +180 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/google_benchmark/example.py +136 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/pybind11.BUILD +20 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/python_headers.BUILD +6 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/requirements.txt +2 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/AddCXXCompilerFlag.cmake +74 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/CXXFeatureCheck.cmake +69 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/Config.cmake.in +1 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/GetGitVersion.cmake +54 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/GoogleTest.cmake +41 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/GoogleTest.cmake.in +58 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/benchmark.pc.in +12 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/gnu_posix_regex.cpp +12 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/llvm-toolchain.cmake +8 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/posix_regex.cpp +14 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/split_list.cmake +3 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/std_regex.cpp +10 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/steady_clock.cpp +7 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/thread_safety_attributes.cpp +4 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/conan/CMakeLists.txt +7 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/conan/test_package/CMakeLists.txt +10 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/conan/test_package/conanfile.py +19 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/conan/test_package/test_package.cpp +18 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/conanfile.py +79 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/dependencies.md +18 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/docs/AssemblyTests.md +147 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/docs/_config.yml +1 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/docs/releasing.md +16 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/docs/tools.md +203 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/include/benchmark/benchmark.h +1604 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/requirements.txt +2 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/setup.py +140 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/CMakeLists.txt +114 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/arraysize.h +33 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark.cc +499 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_api_internal.cc +15 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_api_internal.h +53 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_main.cc +17 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_name.cc +58 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_register.cc +515 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_register.h +108 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_runner.cc +362 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_runner.h +51 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/check.h +82 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/colorprint.cc +188 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/colorprint.h +33 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/commandlineflags.cc +228 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/commandlineflags.h +103 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/complexity.cc +238 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/complexity.h +55 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/console_reporter.cc +177 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/counter.cc +80 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/counter.h +32 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/csv_reporter.cc +154 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/cycleclock.h +211 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/internal_macros.h +102 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/json_reporter.cc +255 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/log.h +74 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/mutex.h +155 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/re.h +158 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/reporter.cc +105 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/sleep.cc +67 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/sleep.h +15 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/statistics.cc +193 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/statistics.h +37 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/string_util.cc +255 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/string_util.h +59 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/sysinfo.cc +716 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/thread_manager.h +64 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/thread_timer.h +86 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/timers.cc +245 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/timers.h +48 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/AssemblyTests.cmake +46 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/BUILD +73 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/CMakeLists.txt +263 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/args_product_test.cc +77 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/basic_test.cc +136 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/benchmark_gtest.cc +134 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/benchmark_name_gtest.cc +74 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/benchmark_test.cc +245 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/clobber_memory_assembly_test.cc +64 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/commandlineflags_gtest.cc +201 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/complexity_test.cc +213 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/cxx03_test.cc +63 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/diagnostics_test.cc +80 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/display_aggregates_only_test.cc +43 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/donotoptimize_assembly_test.cc +163 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/donotoptimize_test.cc +52 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/filter_test.cc +104 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/fixture_test.cc +51 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/internal_threading_test.cc +184 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/link_main_test.cc +8 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/map_test.cc +57 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/memory_manager_test.cc +44 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/multiple_ranges_test.cc +96 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/options_test.cc +75 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/output_test.h +213 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/output_test_helper.cc +515 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/register_benchmark_test.cc +184 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/report_aggregates_only_test.cc +39 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/reporter_output_test.cc +747 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/skip_with_error_test.cc +195 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/state_assembly_test.cc +68 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/statistics_gtest.cc +28 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/string_util_gtest.cc +153 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/templated_fixture_test.cc +28 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/user_counters_tabular_test.cc +285 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/user_counters_test.cc +531 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/user_counters_thousands_test.cc +173 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/BUILD.bazel +19 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/compare.py +429 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/Inputs/test1_run1.json +119 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/Inputs/test1_run2.json +119 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/Inputs/test2_run.json +81 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/Inputs/test3_run0.json +65 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/Inputs/test3_run1.json +65 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/__init__.py +8 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/report.py +903 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/util.py +163 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/requirements.txt +1 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/strip_asm.py +151 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/.travis.yml +65 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/BUILD.bazel +182 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/CMakeLists.txt +32 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/CONTRIBUTING.md +142 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/LICENSE +28 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/README.md +135 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/WORKSPACE +30 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/appveyor.yml +156 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/build-linux-bazel.sh +36 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/build-platformio.sh +2 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/env-linux.sh +41 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/env-osx.sh +41 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/get-nprocessors.sh +48 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/install-linux.sh +49 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/install-osx.sh +39 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/install-platformio.sh +5 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/log-config.sh +47 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/travis.sh +29 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/CMakeLists.txt +219 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/CONTRIBUTORS +40 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/LICENSE +28 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/README.md +44 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/cmake/gmock.pc.in +10 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/cmake/gmock_main.pc.in +10 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/docs/cheat_sheet.md +786 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/docs/community_created_documentation.md +9 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/docs/cook_book.md +4276 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/docs/for_dummies.md +702 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/docs/gmock_faq.md +398 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/docs/pump_manual.md +189 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-actions.h +1688 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-cardinalities.h +157 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-function-mocker.h +479 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-generated-actions.h +577 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-generated-actions.h.pump +390 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-matchers.h +5394 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-more-matchers.h +92 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-nice-strict.h +230 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-spec-builders.h +2030 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock.h +98 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/custom/README.md +16 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h +10 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h.pump +12 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/custom/gmock-matchers.h +36 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/custom/gmock-port.h +39 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h +459 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/gmock-port.h +87 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/gmock-pp.h +279 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/README.md +5 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/fuse_gmock_files.py +257 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/LICENSE +203 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/README +34 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/README.cppclean +115 -0
- package/deps/couchbase-cxx-client/{core/CMakeLists.txt → third_party/snappy/third_party/googletest/googlemock/scripts/generator/cpp/__init__.py} +0 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/cpp/ast.py +1772 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/cpp/gmock_class.py +245 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/cpp/gmock_class_test.py +552 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/cpp/keywords.py +56 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/cpp/tokenize.py +284 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/cpp/utils.py +37 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/gmock_gen.py +30 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/pump.py +856 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/src/gmock-all.cc +46 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/src/gmock-cardinalities.cc +155 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/src/gmock-internal-utils.cc +200 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/src/gmock-matchers.cc +459 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/src/gmock-spec-builders.cc +908 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/src/gmock.cc +213 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/src/gmock_main.cc +72 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/BUILD.bazel +111 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-actions_test.cc +1583 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-cardinalities_test.cc +429 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-function-mocker_nc.cc +16 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-function-mocker_nc_test.py +43 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-function-mocker_test.cc +974 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-generated-actions_test.cc +1036 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-internal-utils_test.cc +720 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-matchers_test.cc +8562 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-more-actions_test.cc +725 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-nice-strict_test.cc +500 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-port_test.cc +42 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-pp-string_test.cc +206 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-pp_test.cc +83 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-spec-builders_test.cc +2775 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_all_test.cc +47 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_ex_test.cc +80 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_leak_test.py +104 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_leak_test_.cc +99 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_link2_test.cc +39 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_link_test.cc +39 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_link_test.h +690 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_output_test.py +183 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_output_test_.cc +309 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_output_test_golden.txt +317 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_stress_test.cc +240 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_test.cc +181 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_test_utils.py +108 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/pump_test.py +182 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/CMakeLists.txt +320 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/CONTRIBUTORS +38 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/LICENSE +28 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/README.md +262 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/cmake/Config.cmake.in +9 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/cmake/gtest.pc.in +9 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/cmake/gtest_main.pc.in +10 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/cmake/internal_utils.cmake +341 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/cmake/libgtest.la.in +21 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/docs/advanced.md +2640 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/docs/faq.md +771 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/docs/pkgconfig.md +150 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/docs/primer.md +583 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/docs/samples.md +22 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-death-test.h +342 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-matchers.h +756 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-message.h +219 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-param-test.h +512 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-printers.h +903 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-spi.h +238 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-test-part.h +184 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-typed-test.h +337 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest.h +2491 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest_pred_impl.h +359 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest_prod.h +61 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/custom/README.md +56 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/custom/gtest-port.h +37 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/custom/gtest-printers.h +42 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/custom/gtest.h +37 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-death-test-internal.h +304 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-filepath.h +211 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-internal.h +1564 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-param-util.h +947 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-port-arch.h +112 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-port.h +2371 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-string.h +175 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-type-util.h +187 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/prime_tables.h +126 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample1.cc +66 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample1.h +41 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample10_unittest.cc +139 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample1_unittest.cc +151 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample2.cc +54 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample2.h +81 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample2_unittest.cc +107 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample3-inl.h +172 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample3_unittest.cc +149 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample4.cc +54 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample4.h +53 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample4_unittest.cc +53 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample5_unittest.cc +196 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample6_unittest.cc +224 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample7_unittest.cc +117 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample8_unittest.cc +154 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample9_unittest.cc +156 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/README.md +5 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/common.py +83 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/fuse_gtest_files.py +253 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/gen_gtest_pred_impl.py +733 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/gtest-config.in +274 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/release_docs.py +158 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/run_with_path.py +32 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/upload.py +1402 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/upload_gtest.py +78 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-all.cc +48 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-death-test.cc +1644 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-filepath.cc +368 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-internal-inl.h +1228 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-matchers.cc +97 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-port.cc +1404 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-printers.cc +444 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-test-part.cc +108 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-typed-test.cc +111 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest.cc +6606 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest_main.cc +54 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/BUILD.bazel +562 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-break-on-failure-unittest.py +208 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-break-on-failure-unittest_.cc +86 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-catch-exceptions-test.py +236 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-catch-exceptions-test_.cc +293 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-color-test.py +127 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-color-test_.cc +62 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-death-test-test.cc +1542 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-death-test_ex_test.cc +92 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-env-var-test.py +120 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-env-var-test_.cc +132 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-failfast-unittest.py +410 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-failfast-unittest_.cc +167 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-filepath-test.cc +649 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-filter-unittest.py +639 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-filter-unittest_.cc +137 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-json-outfiles-test.py +191 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-json-output-unittest.py +804 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-list-tests-unittest.py +205 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-list-tests-unittest_.cc +156 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-listener-test.cc +518 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-message-test.cc +158 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-options-test.cc +216 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-output-test-golden-lin.txt +1180 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-output-test.py +346 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-output-test_.cc +1126 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-param-test-invalid-name1-test.py +63 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-param-test-invalid-name1-test_.cc +50 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-param-test-invalid-name2-test.py +62 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-param-test-invalid-name2-test_.cc +55 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-param-test-test.cc +1119 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-param-test-test.h +51 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-param-test2-test.cc +61 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-port-test.cc +1280 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-printers-test.cc +1847 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-setuptestsuite-test.py +54 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-setuptestsuite-test_.cc +49 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-shuffle-test.py +323 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-shuffle-test_.cc +101 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-test-part-test.cc +230 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-throw-on-failure-test.py +168 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-throw-on-failure-test_.cc +71 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-uninitialized-test.py +67 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-uninitialized-test_.cc +42 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest-typed-test2_test.cc +44 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest-typed-test_test.cc +462 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest-typed-test_test.h +65 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest-unittest-api_test.cc +341 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_all_test.cc +46 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_assert_by_exception_test.cc +116 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_environment_test.cc +188 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_help_test.py +171 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_help_test_.cc +45 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_json_test_utils.py +60 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_list_output_unittest.py +286 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_list_output_unittest_.cc +81 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_main_unittest.cc +44 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_no_test_unittest.cc +54 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_pred_impl_unittest.cc +2422 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_premature_exit_test.cc +126 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_prod_test.cc +56 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_repeat_test.cc +233 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_skip_check_output_test.py +59 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_skip_environment_check_output_test.py +54 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_skip_in_environment_setup_test.cc +49 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_skip_test.cc +55 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_sole_header_test.cc +56 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_stress_test.cc +248 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_test_macro_stack_footprint_test.cc +89 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_test_utils.py +312 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_testbridge_test.py +63 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_testbridge_test_.cc +43 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_throw_on_failure_ex_test.cc +90 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_unittest.cc +7792 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_xml_outfile1_test_.cc +43 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_xml_outfile2_test_.cc +43 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_xml_outfiles_test.py +135 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_xml_output_unittest.py +405 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_xml_output_unittest_.cc +197 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_xml_test_utils.py +197 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/production.cc +35 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/production.h +54 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/library.json +62 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/platformio.ini +47 -0
- package/deps/couchbase-cxx-client/tools/CMakeLists.txt +2 -0
- package/deps/couchbase-cxx-client/tools/analytics.cxx +375 -0
- package/deps/couchbase-cxx-client/tools/analytics.hxx +26 -0
- package/deps/couchbase-cxx-client/tools/cbc.cxx +11 -4
- package/deps/couchbase-cxx-client/tools/command_registry.cxx +4 -0
- package/deps/couchbase-cxx-client/tools/get.cxx +36 -39
- package/deps/couchbase-cxx-client/tools/get.hxx +1 -1
- package/deps/couchbase-cxx-client/tools/pillowfight.cxx +496 -0
- package/deps/couchbase-cxx-client/tools/pillowfight.hxx +26 -0
- package/deps/couchbase-cxx-client/tools/query.cxx +97 -101
- package/deps/couchbase-cxx-client/tools/query.hxx +1 -1
- package/deps/couchbase-cxx-client/tools/utils.cxx +15 -1
- package/deps/couchbase-cxx-client/tools/utils.hxx +3 -0
- package/deps/couchbase-cxx-client/tools/version.cxx +4 -2
- package/deps/couchbase-cxx-client/tools/version.hxx +1 -1
- package/dist/authenticators.d.ts +1 -1
- package/dist/binding.d.ts +25 -10
- package/dist/bindingutilities.d.ts +6 -2
- package/dist/bindingutilities.js +39 -7
- package/dist/cluster.d.ts +27 -0
- package/dist/cluster.js +88 -56
- package/dist/collection.js +6 -6
- package/dist/configProfile.js +16 -10
- package/dist/couchbase.d.ts +1 -0
- package/dist/couchbase.js +2 -1
- package/dist/errors.d.ts +2 -2
- package/dist/errors.js +4 -4
- package/dist/scope.js +6 -6
- package/dist/sdspecs.js +11 -11
- package/dist/searchquery.d.ts +1 -1
- package/dist/streamablepromises.d.ts +1 -1
- package/dist/transactions.js +5 -1
- package/dist/usermanager.js +9 -9
- package/dist/viewindexmanager.js +8 -8
- package/package.json +1 -1
- package/src/binding.cpp +2 -0
- package/src/jstocbpp_autogen.hpp +3 -6
- package/src/jstocbpp_basic.hpp +8 -2
- package/src/jstocbpp_errors.hpp +35 -0
- package/src/jstocbpp_transactions.hpp +61 -9
- package/src/transaction.cpp +1 -1
- package/deps/couchbase-cxx-client/core/config_profile.cxx +0 -25
- package/deps/couchbase-cxx-client/core/topology/error_map_fmt.hxx +0 -94
- package/deps/couchbase-cxx-client/test/test_transaction_transaction_context.cxx +0 -550
- package/deps/couchbase-cxx-client/test/test_transaction_transaction_public_async_api.cxx +0 -392
- package/deps/couchbase-cxx-client/test/test_transaction_transaction_public_blocking_api.cxx +0 -643
- package/deps/couchbase-cxx-client/test/test_transaction_transaction_simple.cxx +0 -899
- package/deps/couchbase-cxx-client/test/test_transaction_transaction_simple_async.cxx +0 -972
- package/deps/couchbase-cxx-client/test/tools/CMakeLists.txt +0 -10
- package/deps/couchbase-cxx-client/test/tools/tool_kv_loader.cxx +0 -349
- package/deps/couchbase-cxx-client/test/utils/uniq_id.cxx +0 -29
- package/deps/couchbase-cxx-client/test/utils/uniq_id.hxx +0 -26
- package/deps/couchbase-cxx-client/third_party/catch2/.travis.yml +0 -335
- package/deps/couchbase-cxx-client/third_party/catch2/CMake/MiscFunctions.cmake +0 -26
- package/deps/couchbase-cxx-client/third_party/catch2/WORKSPACE +0 -0
- package/deps/couchbase-cxx-client/third_party/catch2/contrib/Catch.cmake +0 -206
- package/deps/couchbase-cxx-client/third_party/catch2/contrib/CatchAddTests.cmake +0 -135
- package/deps/couchbase-cxx-client/third_party/catch2/docs/slow-compiles.md +0 -106
- package/deps/couchbase-cxx-client/third_party/catch2/examples/000-CatchMain.cpp +0 -15
- package/deps/couchbase-cxx-client/third_party/catch2/examples/200-Rpt-CatchMain.cpp +0 -27
- package/deps/couchbase-cxx-client/third_party/catch2/examples/207-Rpt-TeamCityReporter.cpp +0 -171
- package/deps/couchbase-cxx-client/third_party/catch2/include/catch.hpp +0 -496
- package/deps/couchbase-cxx-client/third_party/catch2/include/catch_with_main.hpp +0 -14
- package/deps/couchbase-cxx-client/third_party/catch2/include/external/clara.hpp +0 -1268
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_benchmark.hpp +0 -122
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_benchmarking_all.hpp +0 -29
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_chronometer.hpp +0 -71
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_clock.hpp +0 -40
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_constructor.hpp +0 -79
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_environment.hpp +0 -38
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_estimate.hpp +0 -31
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_execution_plan.hpp +0 -59
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_optimizer.hpp +0 -68
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_outlier_classification.hpp +0 -29
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_sample_analysis.hpp +0 -50
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_analyse.hpp +0 -78
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_benchmark_function.hpp +0 -105
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_complete_invoke.hpp +0 -68
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_estimate_clock.hpp +0 -115
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_measure.hpp +0 -35
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_repeat.hpp +0 -37
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_run_for_at_least.hpp +0 -65
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_stats.cpp +0 -224
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_stats.hpp +0 -160
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_timing.hpp +0 -33
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_approx.cpp +0 -88
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_approx.h +0 -132
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_assertionhandler.cpp +0 -122
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_assertionhandler.h +0 -88
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_assertioninfo.h +0 -31
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_assertionresult.cpp +0 -104
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_assertionresult.h +0 -59
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_capture.hpp +0 -159
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_capture_matchers.cpp +0 -24
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_capture_matchers.h +0 -88
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_clara.h +0 -38
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_commandline.cpp +0 -230
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_commandline.h +0 -20
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_common.cpp +0 -43
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_common.h +0 -92
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_compiler_capabilities.h +0 -377
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_config.cpp +0 -86
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_config.hpp +0 -133
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_config_uncaught_exceptions.hpp +0 -44
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_console_colour.cpp +0 -243
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_console_colour.h +0 -69
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_context.cpp +0 -70
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_context.h +0 -64
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_debug_console.cpp +0 -41
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_debug_console.h +0 -17
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_debugger.cpp +0 -122
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_debugger.h +0 -65
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_decomposer.cpp +0 -24
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_decomposer.h +0 -259
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_default_main.hpp +0 -47
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_enforce.cpp +0 -40
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_enforce.h +0 -53
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_enum_values_registry.cpp +0 -75
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_enum_values_registry.h +0 -35
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_errno_guard.cpp +0 -15
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_errno_guard.h +0 -22
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_exception_translator_registry.cpp +0 -89
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_exception_translator_registry.h +0 -30
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_external_interfaces.h +0 -20
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_fatal_condition.cpp +0 -244
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_fatal_condition.h +0 -68
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_generators.cpp +0 -32
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_generators.hpp +0 -219
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_generators_generic.hpp +0 -237
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_generators_specific.hpp +0 -175
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_impl.hpp +0 -33
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_capture.cpp +0 -5
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_capture.h +0 -100
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_config.cpp +0 -5
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_config.h +0 -92
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_enum_values_registry.h +0 -46
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_exception.cpp +0 -6
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_exception.h +0 -88
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_generatortracker.h +0 -39
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_registry_hub.cpp +0 -6
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_registry_hub.h +0 -61
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_reporter.cpp +0 -114
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_reporter.h +0 -272
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_runner.cpp +0 -5
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_runner.h +0 -19
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_tag_alias_registry.h +0 -28
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_testcase.cpp +0 -6
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_testcase.h +0 -38
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_leak_detector.cpp +0 -37
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_leak_detector.h +0 -18
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_list.cpp +0 -173
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_list.h +0 -38
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers.cpp +0 -28
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers.h +0 -174
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_exception.cpp +0 -30
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_exception.hpp +0 -36
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_floating.cpp +0 -237
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_floating.h +0 -70
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_generic.cpp +0 -9
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_generic.hpp +0 -58
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_string.cpp +0 -118
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_string.h +0 -80
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_vector.h +0 -180
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_message.cpp +0 -142
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_message.h +0 -99
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_meta.hpp +0 -50
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_objc.hpp +0 -215
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_objc_arc.hpp +0 -51
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_option.hpp +0 -73
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_output_redirect.cpp +0 -147
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_output_redirect.h +0 -116
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_platform.h +0 -30
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_polyfills.cpp +0 -31
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_polyfills.hpp +0 -15
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_preprocessor.hpp +0 -237
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_random_number_generator.cpp +0 -73
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_random_number_generator.h +0 -58
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_reenable_warnings.h +0 -21
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_registry_hub.cpp +0 -99
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_reporter_registrars.hpp +0 -78
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_reporter_registry.cpp +0 -34
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_reporter_registry.h +0 -37
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_result_type.cpp +0 -27
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_result_type.h +0 -55
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_run_context.cpp +0 -595
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_run_context.h +0 -159
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_section.cpp +0 -38
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_section.h +0 -51
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_section_info.cpp +0 -19
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_section_info.h +0 -42
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_session.cpp +0 -313
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_session.h +0 -62
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_singletons.cpp +0 -36
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_singletons.hpp +0 -44
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_startup_exception_registry.cpp +0 -28
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_startup_exception_registry.h +0 -29
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_stream.cpp +0 -187
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_stream.h +0 -51
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_string_manip.cpp +0 -109
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_string_manip.h +0 -45
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_stringref.cpp +0 -50
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_stringref.h +0 -104
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_suppress_warnings.h +0 -27
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tag_alias.cpp +0 -5
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tag_alias.h +0 -26
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tag_alias_autoregistrar.cpp +0 -16
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tag_alias_autoregistrar.h +0 -26
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tag_alias_registry.cpp +0 -58
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tag_alias_registry.h +0 -31
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_case_info.cpp +0 -186
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_case_info.h +0 -90
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_case_registry_impl.cpp +0 -176
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_case_registry_impl.h +0 -71
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_case_tracker.cpp +0 -254
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_case_tracker.h +0 -180
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_registry.cpp +0 -37
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_registry.h +0 -402
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_spec.cpp +0 -99
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_spec.h +0 -94
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_spec_parser.cpp +0 -240
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_spec_parser.h +0 -79
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_text.h +0 -17
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_timer.cpp +0 -74
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_timer.h +0 -30
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_to_string.hpp +0 -28
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tostring.cpp +0 -265
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tostring.h +0 -675
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_totals.cpp +0 -61
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_totals.h +0 -41
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_uncaught_exceptions.cpp +0 -25
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_uncaught_exceptions.h +0 -15
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_user_interfaces.h +0 -18
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_version.cpp +0 -44
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_version.h +0 -39
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_wildcard_pattern.cpp +0 -47
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_wildcard_pattern.h +0 -38
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_windows_h_proxy.h +0 -39
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_xmlwriter.cpp +0 -334
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_xmlwriter.h +0 -116
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_automake.hpp +0 -62
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_bases.cpp +0 -84
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_bases.hpp +0 -285
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_compact.cpp +0 -290
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_compact.h +0 -39
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_console.cpp +0 -700
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_console.h +0 -89
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_junit.cpp +0 -300
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_junit.h +0 -62
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_listening.cpp +0 -164
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_listening.h +0 -63
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_sonarqube.hpp +0 -181
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_tap.hpp +0 -254
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_teamcity.hpp +0 -219
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_xml.cpp +0 -281
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_xml.h +0 -68
- package/deps/couchbase-cxx-client/third_party/catch2/misc/appveyorBuildConfigurationScript.bat +0 -22
- package/deps/couchbase-cxx-client/third_party/catch2/misc/appveyorMergeCoverageScript.py +0 -9
- package/deps/couchbase-cxx-client/third_party/catch2/misc/appveyorTestRunScript.bat +0 -15
- package/deps/couchbase-cxx-client/third_party/catch2/misc/coverage-helper.cpp +0 -142
- package/deps/couchbase-cxx-client/third_party/catch2/misc/installOpenCppCoverage.ps1 +0 -19
- package/deps/couchbase-cxx-client/third_party/catch2/projects/CMakeLists.txt +0 -492
- package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/CMakeLists.txt +0 -201
- package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/ToDo.txt +0 -11
- package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X01-PrefixedMacros.cpp +0 -84
- package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X02-DisabledMacros.cpp +0 -31
- package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X03-DisabledExceptions-DefaultHandler.cpp +0 -23
- package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X04-DisabledExceptions-CustomHandler.cpp +0 -33
- package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X10-FallbackStringifier.cpp +0 -23
- package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X11-DisableStringification.cpp +0 -16
- package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X12-CustomDebugBreakMacro.cpp +0 -17
- package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X20-BenchmarkingMacros.cpp +0 -125
- package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X90-WindowsHeaderInclusion.cpp +0 -12
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/Baselines/compact.sw.approved.txt +0 -1903
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/Baselines/console.std.approved.txt +0 -1425
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/Baselines/console.sw.approved.txt +0 -14183
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/Baselines/console.swa4.approved.txt +0 -936
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/Baselines/junit.sw.approved.txt +0 -1773
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/Baselines/sonarqube.sw.approved.txt +0 -1777
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/Baselines/xml.sw.approved.txt +0 -16767
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/CompileTimePerfTests/10.tests.cpp +0 -13
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/CompileTimePerfTests/100.tests.cpp +0 -13
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/CompileTimePerfTests/All.tests.cpp +0 -15
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/CmdLine.tests.cpp +0 -582
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/Details.tests.cpp +0 -23
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp +0 -352
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp +0 -405
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/PartTracker.tests.cpp +0 -253
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/RandomNumberGeneration.tests.cpp +0 -45
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/String.tests.cpp +0 -150
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/StringManip.tests.cpp +0 -67
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/Tag.tests.cpp +0 -54
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/ToString.tests.cpp +0 -53
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/Xml.tests.cpp +0 -114
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_console_colour.cpp +0 -3
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_debugger.cpp +0 -2
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_interfaces_reporter.cpp +0 -2
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_option.cpp +0 -3
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_stream.cpp +0 -3
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_test_case_tracker.cpp +0 -2
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_test_spec.cpp +0 -3
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_xmlwriter.cpp +0 -4
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/TestMain.cpp +0 -34
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/TimingTests/Sleep.tests.cpp +0 -23
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Approx.tests.cpp +0 -215
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/BDD.tests.cpp +0 -110
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Benchmark.tests.cpp +0 -144
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Class.tests.cpp +0 -137
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Compilation.tests.cpp +0 -269
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Condition.tests.cpp +0 -347
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Decomposition.tests.cpp +0 -39
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/EnumToString.tests.cpp +0 -99
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Exception.tests.cpp +0 -210
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Generators.tests.cpp +0 -271
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Matchers.tests.cpp +0 -676
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Message.tests.cpp +0 -269
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Misc.tests.cpp +0 -493
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringByte.tests.cpp +0 -15
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringChrono.tests.cpp +0 -44
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringGeneral.tests.cpp +0 -210
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringOptional.tests.cpp +0 -23
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringPair.tests.cpp +0 -30
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringTuple.tests.cpp +0 -47
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringVariant.tests.cpp +0 -91
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringVector.tests.cpp +0 -86
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringWhich.tests.cpp +0 -193
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Tricky.tests.cpp +0 -429
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/VariadicMacros.tests.cpp +0 -29
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/WarnAboutNoTests.cmake +0 -19
- package/deps/couchbase-cxx-client/third_party/catch2/projects/TestScripts/testRandomOrder.py +0 -59
- package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest/CatchOCTestCase.h +0 -25
- package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest/CatchOCTestCase.mm +0 -87
- package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest/Main.mm +0 -2
- package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest/OCTest.1 +0 -79
- package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest/OCTest.mm +0 -28
- package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest/TestObj.h +0 -28
- package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest/TestObj.m +0 -25
- package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest.xcodeproj/project.pbxproj +0 -294
- package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/catch_objc_impl.mm +0 -69
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/approvalTests.py +0 -217
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/approve.py +0 -33
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/benchmarkCompile.py +0 -148
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/benchmarkRunner.py +0 -56
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/developBuild.py +0 -10
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/embed.py +0 -63
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/embedClara.py +0 -27
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/extractFeaturesFromReleaseNotes.py +0 -94
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/fixWhitespace.py +0 -52
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/generateSingleHeader.py +0 -151
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/majorRelease.py +0 -10
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/minorRelease.py +0 -10
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/patchRelease.py +0 -10
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/releaseCommon.py +0 -168
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/releaseNotes.py +0 -65
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/scriptCommon.py +0 -31
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/updateDocumentToC.py +0 -449
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/updateWandbox.py +0 -53
- package/deps/couchbase-cxx-client/third_party/catch2/single_include/catch2/catch.hpp +0 -17959
- package/deps/couchbase-cxx-client/third_party/catch2/single_include/catch2/catch_reporter_automake.hpp +0 -62
- package/deps/couchbase-cxx-client/third_party/catch2/single_include/catch2/catch_reporter_sonarqube.hpp +0 -181
- package/deps/couchbase-cxx-client/third_party/catch2/single_include/catch2/catch_reporter_tap.hpp +0 -254
- package/deps/couchbase-cxx-client/third_party/catch2/single_include/catch2/catch_reporter_teamcity.hpp +0 -219
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch_with_main.cpp +0 -2
- package/deps/couchbase-cxx-client/third_party/snappy/.appveyor.yml +0 -36
- package/deps/couchbase-cxx-client/third_party/snappy/.travis.yml +0 -94
- /package/deps/couchbase-cxx-client/third_party/catch2/{artwork → data/artwork}/catch2-c-logo.png +0 -0
- /package/deps/couchbase-cxx-client/third_party/catch2/{artwork → data/artwork}/catch2-hand-logo.png +0 -0
- /package/deps/couchbase-cxx-client/third_party/catch2/{artwork → data/artwork}/catch2-logo-small.png +0 -0
- /package/deps/couchbase-cxx-client/third_party/catch2/{contrib → extras}/ParseAndAddCatchTests.cmake +0 -0
- /package/deps/couchbase-cxx-client/third_party/catch2/{contrib → extras}/gdbinit +0 -0
- /package/deps/couchbase-cxx-client/third_party/catch2/{contrib → extras}/lldbinit +0 -0
- /package/deps/couchbase-cxx-client/third_party/catch2/{projects → tests}/SelfTest/Baselines/automake.std.approved.txt +0 -0
- /package/deps/couchbase-cxx-client/third_party/catch2/{projects → tests}/SelfTest/Misc/invalid-test-names.input +0 -0
- /package/deps/couchbase-cxx-client/third_party/catch2/{projects → tests}/SelfTest/Misc/plain-old-tests.input +0 -0
- /package/deps/couchbase-cxx-client/third_party/catch2/{projects → tests}/SelfTest/Misc/special-characters-in-file.input +0 -0
- /package/deps/couchbase-cxx-client/third_party/catch2/{misc → tools/misc}/CMakeLists.txt +0 -0
@@ -0,0 +1,1772 @@
|
|
1
|
+
#!/usr/bin/env python
|
2
|
+
#
|
3
|
+
# Copyright 2007 Neal Norwitz
|
4
|
+
# Portions Copyright 2007 Google Inc.
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
|
18
|
+
"""Generate an Abstract Syntax Tree (AST) for C++."""
|
19
|
+
|
20
|
+
# FIXME:
|
21
|
+
# * Tokens should never be exported, need to convert to Nodes
|
22
|
+
# (return types, parameters, etc.)
|
23
|
+
# * Handle static class data for templatized classes
|
24
|
+
# * Handle casts (both C++ and C-style)
|
25
|
+
# * Handle conditions and loops (if/else, switch, for, while/do)
|
26
|
+
#
|
27
|
+
# TODO much, much later:
|
28
|
+
# * Handle #define
|
29
|
+
# * exceptions
|
30
|
+
|
31
|
+
|
32
|
+
try:
|
33
|
+
# Python 3.x
|
34
|
+
import builtins
|
35
|
+
except ImportError:
|
36
|
+
# Python 2.x
|
37
|
+
import __builtin__ as builtins
|
38
|
+
|
39
|
+
import sys
|
40
|
+
import traceback
|
41
|
+
|
42
|
+
from cpp import keywords
|
43
|
+
from cpp import tokenize
|
44
|
+
from cpp import utils
|
45
|
+
|
46
|
+
|
47
|
+
if not hasattr(builtins, 'reversed'):
|
48
|
+
# Support Python 2.3 and earlier.
|
49
|
+
def reversed(seq):
|
50
|
+
for i in range(len(seq)-1, -1, -1):
|
51
|
+
yield seq[i]
|
52
|
+
|
53
|
+
if not hasattr(builtins, 'next'):
|
54
|
+
# Support Python 2.5 and earlier.
|
55
|
+
def next(obj):
|
56
|
+
return obj.next()
|
57
|
+
|
58
|
+
|
59
|
+
VISIBILITY_PUBLIC, VISIBILITY_PROTECTED, VISIBILITY_PRIVATE = range(3)
|
60
|
+
|
61
|
+
FUNCTION_NONE = 0x00
|
62
|
+
FUNCTION_CONST = 0x01
|
63
|
+
FUNCTION_VIRTUAL = 0x02
|
64
|
+
FUNCTION_PURE_VIRTUAL = 0x04
|
65
|
+
FUNCTION_CTOR = 0x08
|
66
|
+
FUNCTION_DTOR = 0x10
|
67
|
+
FUNCTION_ATTRIBUTE = 0x20
|
68
|
+
FUNCTION_UNKNOWN_ANNOTATION = 0x40
|
69
|
+
FUNCTION_THROW = 0x80
|
70
|
+
FUNCTION_OVERRIDE = 0x100
|
71
|
+
|
72
|
+
"""
|
73
|
+
These are currently unused. Should really handle these properly at some point.
|
74
|
+
|
75
|
+
TYPE_MODIFIER_INLINE = 0x010000
|
76
|
+
TYPE_MODIFIER_EXTERN = 0x020000
|
77
|
+
TYPE_MODIFIER_STATIC = 0x040000
|
78
|
+
TYPE_MODIFIER_CONST = 0x080000
|
79
|
+
TYPE_MODIFIER_REGISTER = 0x100000
|
80
|
+
TYPE_MODIFIER_VOLATILE = 0x200000
|
81
|
+
TYPE_MODIFIER_MUTABLE = 0x400000
|
82
|
+
|
83
|
+
TYPE_MODIFIER_MAP = {
|
84
|
+
'inline': TYPE_MODIFIER_INLINE,
|
85
|
+
'extern': TYPE_MODIFIER_EXTERN,
|
86
|
+
'static': TYPE_MODIFIER_STATIC,
|
87
|
+
'const': TYPE_MODIFIER_CONST,
|
88
|
+
'register': TYPE_MODIFIER_REGISTER,
|
89
|
+
'volatile': TYPE_MODIFIER_VOLATILE,
|
90
|
+
'mutable': TYPE_MODIFIER_MUTABLE,
|
91
|
+
}
|
92
|
+
"""
|
93
|
+
|
94
|
+
_INTERNAL_TOKEN = 'internal'
|
95
|
+
_NAMESPACE_POP = 'ns-pop'
|
96
|
+
|
97
|
+
|
98
|
+
# TODO(nnorwitz): use this as a singleton for templated_types, etc
|
99
|
+
# where we don't want to create a new empty dict each time. It is also const.
|
100
|
+
class _NullDict(object):
|
101
|
+
__contains__ = lambda self: False
|
102
|
+
keys = values = items = iterkeys = itervalues = iteritems = lambda self: ()
|
103
|
+
|
104
|
+
|
105
|
+
# TODO(nnorwitz): move AST nodes into a separate module.
|
106
|
+
class Node(object):
|
107
|
+
"""Base AST node."""
|
108
|
+
|
109
|
+
def __init__(self, start, end):
|
110
|
+
self.start = start
|
111
|
+
self.end = end
|
112
|
+
|
113
|
+
def IsDeclaration(self):
|
114
|
+
"""Returns bool if this node is a declaration."""
|
115
|
+
return False
|
116
|
+
|
117
|
+
def IsDefinition(self):
|
118
|
+
"""Returns bool if this node is a definition."""
|
119
|
+
return False
|
120
|
+
|
121
|
+
def IsExportable(self):
|
122
|
+
"""Returns bool if this node exportable from a header file."""
|
123
|
+
return False
|
124
|
+
|
125
|
+
def Requires(self, node):
|
126
|
+
"""Does this AST node require the definition of the node passed in?"""
|
127
|
+
return False
|
128
|
+
|
129
|
+
def XXX__str__(self):
|
130
|
+
return self._StringHelper(self.__class__.__name__, '')
|
131
|
+
|
132
|
+
def _StringHelper(self, name, suffix):
|
133
|
+
if not utils.DEBUG:
|
134
|
+
return '%s(%s)' % (name, suffix)
|
135
|
+
return '%s(%d, %d, %s)' % (name, self.start, self.end, suffix)
|
136
|
+
|
137
|
+
def __repr__(self):
|
138
|
+
return str(self)
|
139
|
+
|
140
|
+
|
141
|
+
class Define(Node):
|
142
|
+
def __init__(self, start, end, name, definition):
|
143
|
+
Node.__init__(self, start, end)
|
144
|
+
self.name = name
|
145
|
+
self.definition = definition
|
146
|
+
|
147
|
+
def __str__(self):
|
148
|
+
value = '%s %s' % (self.name, self.definition)
|
149
|
+
return self._StringHelper(self.__class__.__name__, value)
|
150
|
+
|
151
|
+
|
152
|
+
class Include(Node):
|
153
|
+
def __init__(self, start, end, filename, system):
|
154
|
+
Node.__init__(self, start, end)
|
155
|
+
self.filename = filename
|
156
|
+
self.system = system
|
157
|
+
|
158
|
+
def __str__(self):
|
159
|
+
fmt = '"%s"'
|
160
|
+
if self.system:
|
161
|
+
fmt = '<%s>'
|
162
|
+
return self._StringHelper(self.__class__.__name__, fmt % self.filename)
|
163
|
+
|
164
|
+
|
165
|
+
class Goto(Node):
|
166
|
+
def __init__(self, start, end, label):
|
167
|
+
Node.__init__(self, start, end)
|
168
|
+
self.label = label
|
169
|
+
|
170
|
+
def __str__(self):
|
171
|
+
return self._StringHelper(self.__class__.__name__, str(self.label))
|
172
|
+
|
173
|
+
|
174
|
+
class Expr(Node):
|
175
|
+
def __init__(self, start, end, expr):
|
176
|
+
Node.__init__(self, start, end)
|
177
|
+
self.expr = expr
|
178
|
+
|
179
|
+
def Requires(self, node):
|
180
|
+
# TODO(nnorwitz): impl.
|
181
|
+
return False
|
182
|
+
|
183
|
+
def __str__(self):
|
184
|
+
return self._StringHelper(self.__class__.__name__, str(self.expr))
|
185
|
+
|
186
|
+
|
187
|
+
class Return(Expr):
|
188
|
+
pass
|
189
|
+
|
190
|
+
|
191
|
+
class Delete(Expr):
|
192
|
+
pass
|
193
|
+
|
194
|
+
|
195
|
+
class Friend(Expr):
|
196
|
+
def __init__(self, start, end, expr, namespace):
|
197
|
+
Expr.__init__(self, start, end, expr)
|
198
|
+
self.namespace = namespace[:]
|
199
|
+
|
200
|
+
|
201
|
+
class Using(Node):
|
202
|
+
def __init__(self, start, end, names):
|
203
|
+
Node.__init__(self, start, end)
|
204
|
+
self.names = names
|
205
|
+
|
206
|
+
def __str__(self):
|
207
|
+
return self._StringHelper(self.__class__.__name__, str(self.names))
|
208
|
+
|
209
|
+
|
210
|
+
class Parameter(Node):
|
211
|
+
def __init__(self, start, end, name, parameter_type, default):
|
212
|
+
Node.__init__(self, start, end)
|
213
|
+
self.name = name
|
214
|
+
self.type = parameter_type
|
215
|
+
self.default = default
|
216
|
+
|
217
|
+
def Requires(self, node):
|
218
|
+
# TODO(nnorwitz): handle namespaces, etc.
|
219
|
+
return self.type.name == node.name
|
220
|
+
|
221
|
+
def __str__(self):
|
222
|
+
name = str(self.type)
|
223
|
+
suffix = '%s %s' % (name, self.name)
|
224
|
+
if self.default:
|
225
|
+
suffix += ' = ' + ''.join([d.name for d in self.default])
|
226
|
+
return self._StringHelper(self.__class__.__name__, suffix)
|
227
|
+
|
228
|
+
|
229
|
+
class _GenericDeclaration(Node):
|
230
|
+
def __init__(self, start, end, name, namespace):
|
231
|
+
Node.__init__(self, start, end)
|
232
|
+
self.name = name
|
233
|
+
self.namespace = namespace[:]
|
234
|
+
|
235
|
+
def FullName(self):
|
236
|
+
prefix = ''
|
237
|
+
if self.namespace and self.namespace[-1]:
|
238
|
+
prefix = '::'.join(self.namespace) + '::'
|
239
|
+
return prefix + self.name
|
240
|
+
|
241
|
+
def _TypeStringHelper(self, suffix):
|
242
|
+
if self.namespace:
|
243
|
+
names = [n or '<anonymous>' for n in self.namespace]
|
244
|
+
suffix += ' in ' + '::'.join(names)
|
245
|
+
return self._StringHelper(self.__class__.__name__, suffix)
|
246
|
+
|
247
|
+
|
248
|
+
# TODO(nnorwitz): merge with Parameter in some way?
|
249
|
+
class VariableDeclaration(_GenericDeclaration):
|
250
|
+
def __init__(self, start, end, name, var_type, initial_value, namespace):
|
251
|
+
_GenericDeclaration.__init__(self, start, end, name, namespace)
|
252
|
+
self.type = var_type
|
253
|
+
self.initial_value = initial_value
|
254
|
+
|
255
|
+
def Requires(self, node):
|
256
|
+
# TODO(nnorwitz): handle namespaces, etc.
|
257
|
+
return self.type.name == node.name
|
258
|
+
|
259
|
+
def ToString(self):
|
260
|
+
"""Return a string that tries to reconstitute the variable decl."""
|
261
|
+
suffix = '%s %s' % (self.type, self.name)
|
262
|
+
if self.initial_value:
|
263
|
+
suffix += ' = ' + self.initial_value
|
264
|
+
return suffix
|
265
|
+
|
266
|
+
def __str__(self):
|
267
|
+
return self._StringHelper(self.__class__.__name__, self.ToString())
|
268
|
+
|
269
|
+
|
270
|
+
class Typedef(_GenericDeclaration):
|
271
|
+
def __init__(self, start, end, name, alias, namespace):
|
272
|
+
_GenericDeclaration.__init__(self, start, end, name, namespace)
|
273
|
+
self.alias = alias
|
274
|
+
|
275
|
+
def IsDefinition(self):
|
276
|
+
return True
|
277
|
+
|
278
|
+
def IsExportable(self):
|
279
|
+
return True
|
280
|
+
|
281
|
+
def Requires(self, node):
|
282
|
+
# TODO(nnorwitz): handle namespaces, etc.
|
283
|
+
name = node.name
|
284
|
+
for token in self.alias:
|
285
|
+
if token is not None and name == token.name:
|
286
|
+
return True
|
287
|
+
return False
|
288
|
+
|
289
|
+
def __str__(self):
|
290
|
+
suffix = '%s, %s' % (self.name, self.alias)
|
291
|
+
return self._TypeStringHelper(suffix)
|
292
|
+
|
293
|
+
|
294
|
+
class _NestedType(_GenericDeclaration):
|
295
|
+
def __init__(self, start, end, name, fields, namespace):
|
296
|
+
_GenericDeclaration.__init__(self, start, end, name, namespace)
|
297
|
+
self.fields = fields
|
298
|
+
|
299
|
+
def IsDefinition(self):
|
300
|
+
return True
|
301
|
+
|
302
|
+
def IsExportable(self):
|
303
|
+
return True
|
304
|
+
|
305
|
+
def __str__(self):
|
306
|
+
suffix = '%s, {%s}' % (self.name, self.fields)
|
307
|
+
return self._TypeStringHelper(suffix)
|
308
|
+
|
309
|
+
|
310
|
+
class Union(_NestedType):
|
311
|
+
pass
|
312
|
+
|
313
|
+
|
314
|
+
class Enum(_NestedType):
|
315
|
+
pass
|
316
|
+
|
317
|
+
|
318
|
+
class Class(_GenericDeclaration):
|
319
|
+
def __init__(self, start, end, name, bases, templated_types, body, namespace):
|
320
|
+
_GenericDeclaration.__init__(self, start, end, name, namespace)
|
321
|
+
self.bases = bases
|
322
|
+
self.body = body
|
323
|
+
self.templated_types = templated_types
|
324
|
+
|
325
|
+
def IsDeclaration(self):
|
326
|
+
return self.bases is None and self.body is None
|
327
|
+
|
328
|
+
def IsDefinition(self):
|
329
|
+
return not self.IsDeclaration()
|
330
|
+
|
331
|
+
def IsExportable(self):
|
332
|
+
return not self.IsDeclaration()
|
333
|
+
|
334
|
+
def Requires(self, node):
|
335
|
+
# TODO(nnorwitz): handle namespaces, etc.
|
336
|
+
if self.bases:
|
337
|
+
for token_list in self.bases:
|
338
|
+
# TODO(nnorwitz): bases are tokens, do name comparision.
|
339
|
+
for token in token_list:
|
340
|
+
if token.name == node.name:
|
341
|
+
return True
|
342
|
+
# TODO(nnorwitz): search in body too.
|
343
|
+
return False
|
344
|
+
|
345
|
+
def __str__(self):
|
346
|
+
name = self.name
|
347
|
+
if self.templated_types:
|
348
|
+
name += '<%s>' % self.templated_types
|
349
|
+
suffix = '%s, %s, %s' % (name, self.bases, self.body)
|
350
|
+
return self._TypeStringHelper(suffix)
|
351
|
+
|
352
|
+
|
353
|
+
class Struct(Class):
|
354
|
+
pass
|
355
|
+
|
356
|
+
|
357
|
+
class Function(_GenericDeclaration):
|
358
|
+
def __init__(self, start, end, name, return_type, parameters,
|
359
|
+
modifiers, templated_types, body, namespace):
|
360
|
+
_GenericDeclaration.__init__(self, start, end, name, namespace)
|
361
|
+
converter = TypeConverter(namespace)
|
362
|
+
self.return_type = converter.CreateReturnType(return_type)
|
363
|
+
self.parameters = converter.ToParameters(parameters)
|
364
|
+
self.modifiers = modifiers
|
365
|
+
self.body = body
|
366
|
+
self.templated_types = templated_types
|
367
|
+
|
368
|
+
def IsDeclaration(self):
|
369
|
+
return self.body is None
|
370
|
+
|
371
|
+
def IsDefinition(self):
|
372
|
+
return self.body is not None
|
373
|
+
|
374
|
+
def IsExportable(self):
|
375
|
+
if self.return_type and 'static' in self.return_type.modifiers:
|
376
|
+
return False
|
377
|
+
return None not in self.namespace
|
378
|
+
|
379
|
+
def Requires(self, node):
|
380
|
+
if self.parameters:
|
381
|
+
# TODO(nnorwitz): parameters are tokens, do name comparision.
|
382
|
+
for p in self.parameters:
|
383
|
+
if p.name == node.name:
|
384
|
+
return True
|
385
|
+
# TODO(nnorwitz): search in body too.
|
386
|
+
return False
|
387
|
+
|
388
|
+
def __str__(self):
|
389
|
+
# TODO(nnorwitz): add templated_types.
|
390
|
+
suffix = ('%s %s(%s), 0x%02x, %s' %
|
391
|
+
(self.return_type, self.name, self.parameters,
|
392
|
+
self.modifiers, self.body))
|
393
|
+
return self._TypeStringHelper(suffix)
|
394
|
+
|
395
|
+
|
396
|
+
class Method(Function):
|
397
|
+
def __init__(self, start, end, name, in_class, return_type, parameters,
|
398
|
+
modifiers, templated_types, body, namespace):
|
399
|
+
Function.__init__(self, start, end, name, return_type, parameters,
|
400
|
+
modifiers, templated_types, body, namespace)
|
401
|
+
# TODO(nnorwitz): in_class could also be a namespace which can
|
402
|
+
# mess up finding functions properly.
|
403
|
+
self.in_class = in_class
|
404
|
+
|
405
|
+
|
406
|
+
class Type(_GenericDeclaration):
|
407
|
+
"""Type used for any variable (eg class, primitive, struct, etc)."""
|
408
|
+
|
409
|
+
def __init__(self, start, end, name, templated_types, modifiers,
|
410
|
+
reference, pointer, array):
|
411
|
+
"""
|
412
|
+
Args:
|
413
|
+
name: str name of main type
|
414
|
+
templated_types: [Class (Type?)] template type info between <>
|
415
|
+
modifiers: [str] type modifiers (keywords) eg, const, mutable, etc.
|
416
|
+
reference, pointer, array: bools
|
417
|
+
"""
|
418
|
+
_GenericDeclaration.__init__(self, start, end, name, [])
|
419
|
+
self.templated_types = templated_types
|
420
|
+
if not name and modifiers:
|
421
|
+
self.name = modifiers.pop()
|
422
|
+
self.modifiers = modifiers
|
423
|
+
self.reference = reference
|
424
|
+
self.pointer = pointer
|
425
|
+
self.array = array
|
426
|
+
|
427
|
+
def __str__(self):
|
428
|
+
prefix = ''
|
429
|
+
if self.modifiers:
|
430
|
+
prefix = ' '.join(self.modifiers) + ' '
|
431
|
+
name = str(self.name)
|
432
|
+
if self.templated_types:
|
433
|
+
name += '<%s>' % self.templated_types
|
434
|
+
suffix = prefix + name
|
435
|
+
if self.reference:
|
436
|
+
suffix += '&'
|
437
|
+
if self.pointer:
|
438
|
+
suffix += '*'
|
439
|
+
if self.array:
|
440
|
+
suffix += '[]'
|
441
|
+
return self._TypeStringHelper(suffix)
|
442
|
+
|
443
|
+
# By definition, Is* are always False. A Type can only exist in
|
444
|
+
# some sort of variable declaration, parameter, or return value.
|
445
|
+
def IsDeclaration(self):
|
446
|
+
return False
|
447
|
+
|
448
|
+
def IsDefinition(self):
|
449
|
+
return False
|
450
|
+
|
451
|
+
def IsExportable(self):
|
452
|
+
return False
|
453
|
+
|
454
|
+
|
455
|
+
class TypeConverter(object):
|
456
|
+
|
457
|
+
def __init__(self, namespace_stack):
|
458
|
+
self.namespace_stack = namespace_stack
|
459
|
+
|
460
|
+
def _GetTemplateEnd(self, tokens, start):
|
461
|
+
count = 1
|
462
|
+
end = start
|
463
|
+
while 1:
|
464
|
+
token = tokens[end]
|
465
|
+
end += 1
|
466
|
+
if token.name == '<':
|
467
|
+
count += 1
|
468
|
+
elif token.name == '>':
|
469
|
+
count -= 1
|
470
|
+
if count == 0:
|
471
|
+
break
|
472
|
+
return tokens[start:end-1], end
|
473
|
+
|
474
|
+
def ToType(self, tokens):
|
475
|
+
"""Convert [Token,...] to [Class(...), ] useful for base classes.
|
476
|
+
For example, code like class Foo : public Bar<x, y> { ... };
|
477
|
+
the "Bar<x, y>" portion gets converted to an AST.
|
478
|
+
|
479
|
+
Returns:
|
480
|
+
[Class(...), ...]
|
481
|
+
"""
|
482
|
+
result = []
|
483
|
+
name_tokens = []
|
484
|
+
reference = pointer = array = False
|
485
|
+
|
486
|
+
def AddType(templated_types):
|
487
|
+
# Partition tokens into name and modifier tokens.
|
488
|
+
names = []
|
489
|
+
modifiers = []
|
490
|
+
for t in name_tokens:
|
491
|
+
if keywords.IsKeyword(t.name):
|
492
|
+
modifiers.append(t.name)
|
493
|
+
else:
|
494
|
+
names.append(t.name)
|
495
|
+
name = ''.join(names)
|
496
|
+
if name_tokens:
|
497
|
+
result.append(Type(name_tokens[0].start, name_tokens[-1].end,
|
498
|
+
name, templated_types, modifiers,
|
499
|
+
reference, pointer, array))
|
500
|
+
del name_tokens[:]
|
501
|
+
|
502
|
+
i = 0
|
503
|
+
end = len(tokens)
|
504
|
+
while i < end:
|
505
|
+
token = tokens[i]
|
506
|
+
if token.name == '<':
|
507
|
+
new_tokens, new_end = self._GetTemplateEnd(tokens, i+1)
|
508
|
+
AddType(self.ToType(new_tokens))
|
509
|
+
# If there is a comma after the template, we need to consume
|
510
|
+
# that here otherwise it becomes part of the name.
|
511
|
+
i = new_end
|
512
|
+
reference = pointer = array = False
|
513
|
+
elif token.name == ',':
|
514
|
+
AddType([])
|
515
|
+
reference = pointer = array = False
|
516
|
+
elif token.name == '*':
|
517
|
+
pointer = True
|
518
|
+
elif token.name == '&':
|
519
|
+
reference = True
|
520
|
+
elif token.name == '[':
|
521
|
+
pointer = True
|
522
|
+
elif token.name == ']':
|
523
|
+
pass
|
524
|
+
else:
|
525
|
+
name_tokens.append(token)
|
526
|
+
i += 1
|
527
|
+
|
528
|
+
if name_tokens:
|
529
|
+
# No '<' in the tokens, just a simple name and no template.
|
530
|
+
AddType([])
|
531
|
+
return result
|
532
|
+
|
533
|
+
def DeclarationToParts(self, parts, needs_name_removed):
|
534
|
+
name = None
|
535
|
+
default = []
|
536
|
+
if needs_name_removed:
|
537
|
+
# Handle default (initial) values properly.
|
538
|
+
for i, t in enumerate(parts):
|
539
|
+
if t.name == '=':
|
540
|
+
default = parts[i+1:]
|
541
|
+
name = parts[i-1].name
|
542
|
+
if name == ']' and parts[i-2].name == '[':
|
543
|
+
name = parts[i-3].name
|
544
|
+
i -= 1
|
545
|
+
parts = parts[:i-1]
|
546
|
+
break
|
547
|
+
else:
|
548
|
+
if parts[-1].token_type == tokenize.NAME:
|
549
|
+
name = parts.pop().name
|
550
|
+
else:
|
551
|
+
# TODO(nnorwitz): this is a hack that happens for code like
|
552
|
+
# Register(Foo<T>); where it thinks this is a function call
|
553
|
+
# but it's actually a declaration.
|
554
|
+
name = '???'
|
555
|
+
modifiers = []
|
556
|
+
type_name = []
|
557
|
+
other_tokens = []
|
558
|
+
templated_types = []
|
559
|
+
i = 0
|
560
|
+
end = len(parts)
|
561
|
+
while i < end:
|
562
|
+
p = parts[i]
|
563
|
+
if keywords.IsKeyword(p.name):
|
564
|
+
modifiers.append(p.name)
|
565
|
+
elif p.name == '<':
|
566
|
+
templated_tokens, new_end = self._GetTemplateEnd(parts, i+1)
|
567
|
+
templated_types = self.ToType(templated_tokens)
|
568
|
+
i = new_end - 1
|
569
|
+
# Don't add a spurious :: to data members being initialized.
|
570
|
+
next_index = i + 1
|
571
|
+
if next_index < end and parts[next_index].name == '::':
|
572
|
+
i += 1
|
573
|
+
elif p.name in ('[', ']', '='):
|
574
|
+
# These are handled elsewhere.
|
575
|
+
other_tokens.append(p)
|
576
|
+
elif p.name not in ('*', '&', '>'):
|
577
|
+
# Ensure that names have a space between them.
|
578
|
+
if (type_name and type_name[-1].token_type == tokenize.NAME and
|
579
|
+
p.token_type == tokenize.NAME):
|
580
|
+
type_name.append(tokenize.Token(tokenize.SYNTAX, ' ', 0, 0))
|
581
|
+
type_name.append(p)
|
582
|
+
else:
|
583
|
+
other_tokens.append(p)
|
584
|
+
i += 1
|
585
|
+
type_name = ''.join([t.name for t in type_name])
|
586
|
+
return name, type_name, templated_types, modifiers, default, other_tokens
|
587
|
+
|
588
|
+
def ToParameters(self, tokens):
|
589
|
+
if not tokens:
|
590
|
+
return []
|
591
|
+
|
592
|
+
result = []
|
593
|
+
name = type_name = ''
|
594
|
+
type_modifiers = []
|
595
|
+
pointer = reference = array = False
|
596
|
+
first_token = None
|
597
|
+
default = []
|
598
|
+
|
599
|
+
def AddParameter(end):
|
600
|
+
if default:
|
601
|
+
del default[0] # Remove flag.
|
602
|
+
parts = self.DeclarationToParts(type_modifiers, True)
|
603
|
+
(name, type_name, templated_types, modifiers,
|
604
|
+
unused_default, unused_other_tokens) = parts
|
605
|
+
parameter_type = Type(first_token.start, first_token.end,
|
606
|
+
type_name, templated_types, modifiers,
|
607
|
+
reference, pointer, array)
|
608
|
+
p = Parameter(first_token.start, end, name,
|
609
|
+
parameter_type, default)
|
610
|
+
result.append(p)
|
611
|
+
|
612
|
+
template_count = 0
|
613
|
+
brace_count = 0
|
614
|
+
for s in tokens:
|
615
|
+
if not first_token:
|
616
|
+
first_token = s
|
617
|
+
|
618
|
+
# Check for braces before templates, as we can have unmatched '<>'
|
619
|
+
# inside default arguments.
|
620
|
+
if s.name == '{':
|
621
|
+
brace_count += 1
|
622
|
+
elif s.name == '}':
|
623
|
+
brace_count -= 1
|
624
|
+
if brace_count > 0:
|
625
|
+
type_modifiers.append(s)
|
626
|
+
continue
|
627
|
+
|
628
|
+
if s.name == '<':
|
629
|
+
template_count += 1
|
630
|
+
elif s.name == '>':
|
631
|
+
template_count -= 1
|
632
|
+
if template_count > 0:
|
633
|
+
type_modifiers.append(s)
|
634
|
+
continue
|
635
|
+
|
636
|
+
if s.name == ',':
|
637
|
+
AddParameter(s.start)
|
638
|
+
name = type_name = ''
|
639
|
+
type_modifiers = []
|
640
|
+
pointer = reference = array = False
|
641
|
+
first_token = None
|
642
|
+
default = []
|
643
|
+
elif s.name == '*':
|
644
|
+
pointer = True
|
645
|
+
elif s.name == '&':
|
646
|
+
reference = True
|
647
|
+
elif s.name == '[':
|
648
|
+
array = True
|
649
|
+
elif s.name == ']':
|
650
|
+
pass # Just don't add to type_modifiers.
|
651
|
+
elif s.name == '=':
|
652
|
+
# Got a default value. Add any value (None) as a flag.
|
653
|
+
default.append(None)
|
654
|
+
elif default:
|
655
|
+
default.append(s)
|
656
|
+
else:
|
657
|
+
type_modifiers.append(s)
|
658
|
+
AddParameter(tokens[-1].end)
|
659
|
+
return result
|
660
|
+
|
661
|
+
def CreateReturnType(self, return_type_seq):
|
662
|
+
if not return_type_seq:
|
663
|
+
return None
|
664
|
+
start = return_type_seq[0].start
|
665
|
+
end = return_type_seq[-1].end
|
666
|
+
_, name, templated_types, modifiers, default, other_tokens = \
|
667
|
+
self.DeclarationToParts(return_type_seq, False)
|
668
|
+
names = [n.name for n in other_tokens]
|
669
|
+
reference = '&' in names
|
670
|
+
pointer = '*' in names
|
671
|
+
array = '[' in names
|
672
|
+
return Type(start, end, name, templated_types, modifiers,
|
673
|
+
reference, pointer, array)
|
674
|
+
|
675
|
+
def GetTemplateIndices(self, names):
|
676
|
+
# names is a list of strings.
|
677
|
+
start = names.index('<')
|
678
|
+
end = len(names) - 1
|
679
|
+
while end > 0:
|
680
|
+
if names[end] == '>':
|
681
|
+
break
|
682
|
+
end -= 1
|
683
|
+
return start, end+1
|
684
|
+
|
685
|
+
class AstBuilder(object):
|
686
|
+
def __init__(self, token_stream, filename, in_class='', visibility=None,
|
687
|
+
namespace_stack=[]):
|
688
|
+
self.tokens = token_stream
|
689
|
+
self.filename = filename
|
690
|
+
# TODO(nnorwitz): use a better data structure (deque) for the queue.
|
691
|
+
# Switching directions of the "queue" improved perf by about 25%.
|
692
|
+
# Using a deque should be even better since we access from both sides.
|
693
|
+
self.token_queue = []
|
694
|
+
self.namespace_stack = namespace_stack[:]
|
695
|
+
self.in_class = in_class
|
696
|
+
if in_class is None:
|
697
|
+
self.in_class_name_only = None
|
698
|
+
else:
|
699
|
+
self.in_class_name_only = in_class.split('::')[-1]
|
700
|
+
self.visibility = visibility
|
701
|
+
self.in_function = False
|
702
|
+
self.current_token = None
|
703
|
+
# Keep the state whether we are currently handling a typedef or not.
|
704
|
+
self._handling_typedef = False
|
705
|
+
|
706
|
+
self.converter = TypeConverter(self.namespace_stack)
|
707
|
+
|
708
|
+
def HandleError(self, msg, token):
|
709
|
+
printable_queue = list(reversed(self.token_queue[-20:]))
|
710
|
+
sys.stderr.write('Got %s in %s @ %s %s\n' %
|
711
|
+
(msg, self.filename, token, printable_queue))
|
712
|
+
|
713
|
+
def Generate(self):
|
714
|
+
while 1:
|
715
|
+
token = self._GetNextToken()
|
716
|
+
if not token:
|
717
|
+
break
|
718
|
+
|
719
|
+
# Get the next token.
|
720
|
+
self.current_token = token
|
721
|
+
|
722
|
+
# Dispatch on the next token type.
|
723
|
+
if token.token_type == _INTERNAL_TOKEN:
|
724
|
+
if token.name == _NAMESPACE_POP:
|
725
|
+
self.namespace_stack.pop()
|
726
|
+
continue
|
727
|
+
|
728
|
+
try:
|
729
|
+
result = self._GenerateOne(token)
|
730
|
+
if result is not None:
|
731
|
+
yield result
|
732
|
+
except:
|
733
|
+
self.HandleError('exception', token)
|
734
|
+
raise
|
735
|
+
|
736
|
+
def _CreateVariable(self, pos_token, name, type_name, type_modifiers,
|
737
|
+
ref_pointer_name_seq, templated_types, value=None):
|
738
|
+
reference = '&' in ref_pointer_name_seq
|
739
|
+
pointer = '*' in ref_pointer_name_seq
|
740
|
+
array = '[' in ref_pointer_name_seq
|
741
|
+
var_type = Type(pos_token.start, pos_token.end, type_name,
|
742
|
+
templated_types, type_modifiers,
|
743
|
+
reference, pointer, array)
|
744
|
+
return VariableDeclaration(pos_token.start, pos_token.end,
|
745
|
+
name, var_type, value, self.namespace_stack)
|
746
|
+
|
747
|
+
def _GenerateOne(self, token):
|
748
|
+
if token.token_type == tokenize.NAME:
|
749
|
+
if (keywords.IsKeyword(token.name) and
|
750
|
+
not keywords.IsBuiltinType(token.name)):
|
751
|
+
if token.name == 'enum':
|
752
|
+
# Pop the next token and only put it back if it's not
|
753
|
+
# 'class'. This allows us to support the two-token
|
754
|
+
# 'enum class' keyword as if it were simply 'enum'.
|
755
|
+
next = self._GetNextToken()
|
756
|
+
if next.name != 'class':
|
757
|
+
self._AddBackToken(next)
|
758
|
+
|
759
|
+
method = getattr(self, 'handle_' + token.name)
|
760
|
+
return method()
|
761
|
+
elif token.name == self.in_class_name_only:
|
762
|
+
# The token name is the same as the class, must be a ctor if
|
763
|
+
# there is a paren. Otherwise, it's the return type.
|
764
|
+
# Peek ahead to get the next token to figure out which.
|
765
|
+
next = self._GetNextToken()
|
766
|
+
self._AddBackToken(next)
|
767
|
+
if next.token_type == tokenize.SYNTAX and next.name == '(':
|
768
|
+
return self._GetMethod([token], FUNCTION_CTOR, None, True)
|
769
|
+
# Fall through--handle like any other method.
|
770
|
+
|
771
|
+
# Handle data or function declaration/definition.
|
772
|
+
syntax = tokenize.SYNTAX
|
773
|
+
temp_tokens, last_token = \
|
774
|
+
self._GetVarTokensUpToIgnoringTemplates(syntax,
|
775
|
+
'(', ';', '{', '[')
|
776
|
+
temp_tokens.insert(0, token)
|
777
|
+
if last_token.name == '(':
|
778
|
+
# If there is an assignment before the paren,
|
779
|
+
# this is an expression, not a method.
|
780
|
+
expr = bool([e for e in temp_tokens if e.name == '='])
|
781
|
+
if expr:
|
782
|
+
new_temp = self._GetTokensUpTo(tokenize.SYNTAX, ';')
|
783
|
+
temp_tokens.append(last_token)
|
784
|
+
temp_tokens.extend(new_temp)
|
785
|
+
last_token = tokenize.Token(tokenize.SYNTAX, ';', 0, 0)
|
786
|
+
|
787
|
+
if last_token.name == '[':
|
788
|
+
# Handle array, this isn't a method, unless it's an operator.
|
789
|
+
# TODO(nnorwitz): keep the size somewhere.
|
790
|
+
# unused_size = self._GetTokensUpTo(tokenize.SYNTAX, ']')
|
791
|
+
temp_tokens.append(last_token)
|
792
|
+
if temp_tokens[-2].name == 'operator':
|
793
|
+
temp_tokens.append(self._GetNextToken())
|
794
|
+
else:
|
795
|
+
temp_tokens2, last_token = \
|
796
|
+
self._GetVarTokensUpTo(tokenize.SYNTAX, ';')
|
797
|
+
temp_tokens.extend(temp_tokens2)
|
798
|
+
|
799
|
+
if last_token.name == ';':
|
800
|
+
# Handle data, this isn't a method.
|
801
|
+
parts = self.converter.DeclarationToParts(temp_tokens, True)
|
802
|
+
(name, type_name, templated_types, modifiers, default,
|
803
|
+
unused_other_tokens) = parts
|
804
|
+
|
805
|
+
t0 = temp_tokens[0]
|
806
|
+
names = [t.name for t in temp_tokens]
|
807
|
+
if templated_types:
|
808
|
+
start, end = self.converter.GetTemplateIndices(names)
|
809
|
+
names = names[:start] + names[end:]
|
810
|
+
default = ''.join([t.name for t in default])
|
811
|
+
return self._CreateVariable(t0, name, type_name, modifiers,
|
812
|
+
names, templated_types, default)
|
813
|
+
if last_token.name == '{':
|
814
|
+
self._AddBackTokens(temp_tokens[1:])
|
815
|
+
self._AddBackToken(last_token)
|
816
|
+
method_name = temp_tokens[0].name
|
817
|
+
method = getattr(self, 'handle_' + method_name, None)
|
818
|
+
if not method:
|
819
|
+
# Must be declaring a variable.
|
820
|
+
# TODO(nnorwitz): handle the declaration.
|
821
|
+
return None
|
822
|
+
return method()
|
823
|
+
return self._GetMethod(temp_tokens, 0, None, False)
|
824
|
+
elif token.token_type == tokenize.SYNTAX:
|
825
|
+
if token.name == '~' and self.in_class:
|
826
|
+
# Must be a dtor (probably not in method body).
|
827
|
+
token = self._GetNextToken()
|
828
|
+
# self.in_class can contain A::Name, but the dtor will only
|
829
|
+
# be Name. Make sure to compare against the right value.
|
830
|
+
if (token.token_type == tokenize.NAME and
|
831
|
+
token.name == self.in_class_name_only):
|
832
|
+
return self._GetMethod([token], FUNCTION_DTOR, None, True)
|
833
|
+
# TODO(nnorwitz): handle a lot more syntax.
|
834
|
+
elif token.token_type == tokenize.PREPROCESSOR:
|
835
|
+
# TODO(nnorwitz): handle more preprocessor directives.
|
836
|
+
# token starts with a #, so remove it and strip whitespace.
|
837
|
+
name = token.name[1:].lstrip()
|
838
|
+
if name.startswith('include'):
|
839
|
+
# Remove "include".
|
840
|
+
name = name[7:].strip()
|
841
|
+
assert name
|
842
|
+
# Handle #include \<newline> "header-on-second-line.h".
|
843
|
+
if name.startswith('\\'):
|
844
|
+
name = name[1:].strip()
|
845
|
+
assert name[0] in '<"', token
|
846
|
+
assert name[-1] in '>"', token
|
847
|
+
system = name[0] == '<'
|
848
|
+
filename = name[1:-1]
|
849
|
+
return Include(token.start, token.end, filename, system)
|
850
|
+
if name.startswith('define'):
|
851
|
+
# Remove "define".
|
852
|
+
name = name[6:].strip()
|
853
|
+
assert name
|
854
|
+
value = ''
|
855
|
+
for i, c in enumerate(name):
|
856
|
+
if c.isspace():
|
857
|
+
value = name[i:].lstrip()
|
858
|
+
name = name[:i]
|
859
|
+
break
|
860
|
+
return Define(token.start, token.end, name, value)
|
861
|
+
if name.startswith('if') and name[2:3].isspace():
|
862
|
+
condition = name[3:].strip()
|
863
|
+
if condition.startswith('0') or condition.startswith('(0)'):
|
864
|
+
self._SkipIf0Blocks()
|
865
|
+
return None
|
866
|
+
|
867
|
+
def _GetTokensUpTo(self, expected_token_type, expected_token):
|
868
|
+
return self._GetVarTokensUpTo(expected_token_type, expected_token)[0]
|
869
|
+
|
870
|
+
def _GetVarTokensUpTo(self, expected_token_type, *expected_tokens):
|
871
|
+
last_token = self._GetNextToken()
|
872
|
+
tokens = []
|
873
|
+
while (last_token.token_type != expected_token_type or
|
874
|
+
last_token.name not in expected_tokens):
|
875
|
+
tokens.append(last_token)
|
876
|
+
last_token = self._GetNextToken()
|
877
|
+
return tokens, last_token
|
878
|
+
|
879
|
+
# Same as _GetVarTokensUpTo, but skips over '<...>' which could contain an
|
880
|
+
# expected token.
|
881
|
+
def _GetVarTokensUpToIgnoringTemplates(self, expected_token_type,
|
882
|
+
*expected_tokens):
|
883
|
+
last_token = self._GetNextToken()
|
884
|
+
tokens = []
|
885
|
+
nesting = 0
|
886
|
+
while (nesting > 0 or
|
887
|
+
last_token.token_type != expected_token_type or
|
888
|
+
last_token.name not in expected_tokens):
|
889
|
+
tokens.append(last_token)
|
890
|
+
last_token = self._GetNextToken()
|
891
|
+
if last_token.name == '<':
|
892
|
+
nesting += 1
|
893
|
+
elif last_token.name == '>':
|
894
|
+
nesting -= 1
|
895
|
+
return tokens, last_token
|
896
|
+
|
897
|
+
# TODO(nnorwitz): remove _IgnoreUpTo() it shouldn't be necesary.
|
898
|
+
def _IgnoreUpTo(self, token_type, token):
|
899
|
+
unused_tokens = self._GetTokensUpTo(token_type, token)
|
900
|
+
|
901
|
+
def _SkipIf0Blocks(self):
|
902
|
+
count = 1
|
903
|
+
while 1:
|
904
|
+
token = self._GetNextToken()
|
905
|
+
if token.token_type != tokenize.PREPROCESSOR:
|
906
|
+
continue
|
907
|
+
|
908
|
+
name = token.name[1:].lstrip()
|
909
|
+
if name.startswith('endif'):
|
910
|
+
count -= 1
|
911
|
+
if count == 0:
|
912
|
+
break
|
913
|
+
elif name.startswith('if'):
|
914
|
+
count += 1
|
915
|
+
|
916
|
+
def _GetMatchingChar(self, open_paren, close_paren, GetNextToken=None):
|
917
|
+
if GetNextToken is None:
|
918
|
+
GetNextToken = self._GetNextToken
|
919
|
+
# Assumes the current token is open_paren and we will consume
|
920
|
+
# and return up to the close_paren.
|
921
|
+
count = 1
|
922
|
+
token = GetNextToken()
|
923
|
+
while 1:
|
924
|
+
if token.token_type == tokenize.SYNTAX:
|
925
|
+
if token.name == open_paren:
|
926
|
+
count += 1
|
927
|
+
elif token.name == close_paren:
|
928
|
+
count -= 1
|
929
|
+
if count == 0:
|
930
|
+
break
|
931
|
+
yield token
|
932
|
+
token = GetNextToken()
|
933
|
+
yield token
|
934
|
+
|
935
|
+
def _GetParameters(self):
|
936
|
+
return self._GetMatchingChar('(', ')')
|
937
|
+
|
938
|
+
def GetScope(self):
|
939
|
+
return self._GetMatchingChar('{', '}')
|
940
|
+
|
941
|
+
def _GetNextToken(self):
|
942
|
+
if self.token_queue:
|
943
|
+
return self.token_queue.pop()
|
944
|
+
try:
|
945
|
+
return next(self.tokens)
|
946
|
+
except StopIteration:
|
947
|
+
return
|
948
|
+
|
949
|
+
def _AddBackToken(self, token):
|
950
|
+
if token.whence == tokenize.WHENCE_STREAM:
|
951
|
+
token.whence = tokenize.WHENCE_QUEUE
|
952
|
+
self.token_queue.insert(0, token)
|
953
|
+
else:
|
954
|
+
assert token.whence == tokenize.WHENCE_QUEUE, token
|
955
|
+
self.token_queue.append(token)
|
956
|
+
|
957
|
+
def _AddBackTokens(self, tokens):
|
958
|
+
if tokens:
|
959
|
+
if tokens[-1].whence == tokenize.WHENCE_STREAM:
|
960
|
+
for token in tokens:
|
961
|
+
token.whence = tokenize.WHENCE_QUEUE
|
962
|
+
self.token_queue[:0] = reversed(tokens)
|
963
|
+
else:
|
964
|
+
assert tokens[-1].whence == tokenize.WHENCE_QUEUE, tokens
|
965
|
+
self.token_queue.extend(reversed(tokens))
|
966
|
+
|
967
|
+
def GetName(self, seq=None):
|
968
|
+
"""Returns ([tokens], next_token_info)."""
|
969
|
+
GetNextToken = self._GetNextToken
|
970
|
+
if seq is not None:
|
971
|
+
it = iter(seq)
|
972
|
+
GetNextToken = lambda: next(it)
|
973
|
+
next_token = GetNextToken()
|
974
|
+
tokens = []
|
975
|
+
last_token_was_name = False
|
976
|
+
while (next_token.token_type == tokenize.NAME or
|
977
|
+
(next_token.token_type == tokenize.SYNTAX and
|
978
|
+
next_token.name in ('::', '<'))):
|
979
|
+
# Two NAMEs in a row means the identifier should terminate.
|
980
|
+
# It's probably some sort of variable declaration.
|
981
|
+
if last_token_was_name and next_token.token_type == tokenize.NAME:
|
982
|
+
break
|
983
|
+
last_token_was_name = next_token.token_type == tokenize.NAME
|
984
|
+
tokens.append(next_token)
|
985
|
+
# Handle templated names.
|
986
|
+
if next_token.name == '<':
|
987
|
+
tokens.extend(self._GetMatchingChar('<', '>', GetNextToken))
|
988
|
+
last_token_was_name = True
|
989
|
+
next_token = GetNextToken()
|
990
|
+
return tokens, next_token
|
991
|
+
|
992
|
+
def GetMethod(self, modifiers, templated_types):
|
993
|
+
return_type_and_name = self._GetTokensUpTo(tokenize.SYNTAX, '(')
|
994
|
+
assert len(return_type_and_name) >= 1
|
995
|
+
return self._GetMethod(return_type_and_name, modifiers, templated_types,
|
996
|
+
False)
|
997
|
+
|
998
|
+
def _GetMethod(self, return_type_and_name, modifiers, templated_types,
|
999
|
+
get_paren):
|
1000
|
+
template_portion = None
|
1001
|
+
if get_paren:
|
1002
|
+
token = self._GetNextToken()
|
1003
|
+
assert token.token_type == tokenize.SYNTAX, token
|
1004
|
+
if token.name == '<':
|
1005
|
+
# Handle templatized dtors.
|
1006
|
+
template_portion = [token]
|
1007
|
+
template_portion.extend(self._GetMatchingChar('<', '>'))
|
1008
|
+
token = self._GetNextToken()
|
1009
|
+
assert token.token_type == tokenize.SYNTAX, token
|
1010
|
+
assert token.name == '(', token
|
1011
|
+
|
1012
|
+
name = return_type_and_name.pop()
|
1013
|
+
# Handle templatized ctors.
|
1014
|
+
if name.name == '>':
|
1015
|
+
index = 1
|
1016
|
+
while return_type_and_name[index].name != '<':
|
1017
|
+
index += 1
|
1018
|
+
template_portion = return_type_and_name[index:] + [name]
|
1019
|
+
del return_type_and_name[index:]
|
1020
|
+
name = return_type_and_name.pop()
|
1021
|
+
elif name.name == ']':
|
1022
|
+
rt = return_type_and_name
|
1023
|
+
assert rt[-1].name == '[', return_type_and_name
|
1024
|
+
assert rt[-2].name == 'operator', return_type_and_name
|
1025
|
+
name_seq = return_type_and_name[-2:]
|
1026
|
+
del return_type_and_name[-2:]
|
1027
|
+
name = tokenize.Token(tokenize.NAME, 'operator[]',
|
1028
|
+
name_seq[0].start, name.end)
|
1029
|
+
# Get the open paren so _GetParameters() below works.
|
1030
|
+
unused_open_paren = self._GetNextToken()
|
1031
|
+
|
1032
|
+
# TODO(nnorwitz): store template_portion.
|
1033
|
+
return_type = return_type_and_name
|
1034
|
+
indices = name
|
1035
|
+
if return_type:
|
1036
|
+
indices = return_type[0]
|
1037
|
+
|
1038
|
+
# Force ctor for templatized ctors.
|
1039
|
+
if name.name == self.in_class and not modifiers:
|
1040
|
+
modifiers |= FUNCTION_CTOR
|
1041
|
+
parameters = list(self._GetParameters())
|
1042
|
+
del parameters[-1] # Remove trailing ')'.
|
1043
|
+
|
1044
|
+
# Handling operator() is especially weird.
|
1045
|
+
if name.name == 'operator' and not parameters:
|
1046
|
+
token = self._GetNextToken()
|
1047
|
+
assert token.name == '(', token
|
1048
|
+
parameters = list(self._GetParameters())
|
1049
|
+
del parameters[-1] # Remove trailing ')'.
|
1050
|
+
|
1051
|
+
token = self._GetNextToken()
|
1052
|
+
while token.token_type == tokenize.NAME:
|
1053
|
+
modifier_token = token
|
1054
|
+
token = self._GetNextToken()
|
1055
|
+
if modifier_token.name == 'const':
|
1056
|
+
modifiers |= FUNCTION_CONST
|
1057
|
+
elif modifier_token.name == '__attribute__':
|
1058
|
+
# TODO(nnorwitz): handle more __attribute__ details.
|
1059
|
+
modifiers |= FUNCTION_ATTRIBUTE
|
1060
|
+
assert token.name == '(', token
|
1061
|
+
# Consume everything between the (parens).
|
1062
|
+
unused_tokens = list(self._GetMatchingChar('(', ')'))
|
1063
|
+
token = self._GetNextToken()
|
1064
|
+
elif modifier_token.name == 'throw':
|
1065
|
+
modifiers |= FUNCTION_THROW
|
1066
|
+
assert token.name == '(', token
|
1067
|
+
# Consume everything between the (parens).
|
1068
|
+
unused_tokens = list(self._GetMatchingChar('(', ')'))
|
1069
|
+
token = self._GetNextToken()
|
1070
|
+
elif modifier_token.name == 'override':
|
1071
|
+
modifiers |= FUNCTION_OVERRIDE
|
1072
|
+
elif modifier_token.name == modifier_token.name.upper():
|
1073
|
+
# HACK(nnorwitz): assume that all upper-case names
|
1074
|
+
# are some macro we aren't expanding.
|
1075
|
+
modifiers |= FUNCTION_UNKNOWN_ANNOTATION
|
1076
|
+
else:
|
1077
|
+
self.HandleError('unexpected token', modifier_token)
|
1078
|
+
|
1079
|
+
assert token.token_type == tokenize.SYNTAX, token
|
1080
|
+
# Handle ctor initializers.
|
1081
|
+
if token.name == ':':
|
1082
|
+
# TODO(nnorwitz): anything else to handle for initializer list?
|
1083
|
+
while token.name != ';' and token.name != '{':
|
1084
|
+
token = self._GetNextToken()
|
1085
|
+
|
1086
|
+
# Handle pointer to functions that are really data but look
|
1087
|
+
# like method declarations.
|
1088
|
+
if token.name == '(':
|
1089
|
+
if parameters[0].name == '*':
|
1090
|
+
# name contains the return type.
|
1091
|
+
name = parameters.pop()
|
1092
|
+
# parameters contains the name of the data.
|
1093
|
+
modifiers = [p.name for p in parameters]
|
1094
|
+
# Already at the ( to open the parameter list.
|
1095
|
+
function_parameters = list(self._GetMatchingChar('(', ')'))
|
1096
|
+
del function_parameters[-1] # Remove trailing ')'.
|
1097
|
+
# TODO(nnorwitz): store the function_parameters.
|
1098
|
+
token = self._GetNextToken()
|
1099
|
+
assert token.token_type == tokenize.SYNTAX, token
|
1100
|
+
assert token.name == ';', token
|
1101
|
+
return self._CreateVariable(indices, name.name, indices.name,
|
1102
|
+
modifiers, '', None)
|
1103
|
+
# At this point, we got something like:
|
1104
|
+
# return_type (type::*name_)(params);
|
1105
|
+
# This is a data member called name_ that is a function pointer.
|
1106
|
+
# With this code: void (sq_type::*field_)(string&);
|
1107
|
+
# We get: name=void return_type=[] parameters=sq_type ... field_
|
1108
|
+
# TODO(nnorwitz): is return_type always empty?
|
1109
|
+
# TODO(nnorwitz): this isn't even close to being correct.
|
1110
|
+
# Just put in something so we don't crash and can move on.
|
1111
|
+
real_name = parameters[-1]
|
1112
|
+
modifiers = [p.name for p in self._GetParameters()]
|
1113
|
+
del modifiers[-1] # Remove trailing ')'.
|
1114
|
+
return self._CreateVariable(indices, real_name.name, indices.name,
|
1115
|
+
modifiers, '', None)
|
1116
|
+
|
1117
|
+
if token.name == '{':
|
1118
|
+
body = list(self.GetScope())
|
1119
|
+
del body[-1] # Remove trailing '}'.
|
1120
|
+
else:
|
1121
|
+
body = None
|
1122
|
+
if token.name == '=':
|
1123
|
+
token = self._GetNextToken()
|
1124
|
+
|
1125
|
+
if token.name == 'default' or token.name == 'delete':
|
1126
|
+
# Ignore explicitly defaulted and deleted special members
|
1127
|
+
# in C++11.
|
1128
|
+
token = self._GetNextToken()
|
1129
|
+
else:
|
1130
|
+
# Handle pure-virtual declarations.
|
1131
|
+
assert token.token_type == tokenize.CONSTANT, token
|
1132
|
+
assert token.name == '0', token
|
1133
|
+
modifiers |= FUNCTION_PURE_VIRTUAL
|
1134
|
+
token = self._GetNextToken()
|
1135
|
+
|
1136
|
+
if token.name == '[':
|
1137
|
+
# TODO(nnorwitz): store tokens and improve parsing.
|
1138
|
+
# template <typename T, size_t N> char (&ASH(T (&seq)[N]))[N];
|
1139
|
+
tokens = list(self._GetMatchingChar('[', ']'))
|
1140
|
+
token = self._GetNextToken()
|
1141
|
+
|
1142
|
+
assert token.name == ';', (token, return_type_and_name, parameters)
|
1143
|
+
|
1144
|
+
# Looks like we got a method, not a function.
|
1145
|
+
if len(return_type) > 2 and return_type[-1].name == '::':
|
1146
|
+
return_type, in_class = \
|
1147
|
+
self._GetReturnTypeAndClassName(return_type)
|
1148
|
+
return Method(indices.start, indices.end, name.name, in_class,
|
1149
|
+
return_type, parameters, modifiers, templated_types,
|
1150
|
+
body, self.namespace_stack)
|
1151
|
+
return Function(indices.start, indices.end, name.name, return_type,
|
1152
|
+
parameters, modifiers, templated_types, body,
|
1153
|
+
self.namespace_stack)
|
1154
|
+
|
1155
|
+
def _GetReturnTypeAndClassName(self, token_seq):
|
1156
|
+
# Splitting the return type from the class name in a method
|
1157
|
+
# can be tricky. For example, Return::Type::Is::Hard::To::Find().
|
1158
|
+
# Where is the return type and where is the class name?
|
1159
|
+
# The heuristic used is to pull the last name as the class name.
|
1160
|
+
# This includes all the templated type info.
|
1161
|
+
# TODO(nnorwitz): if there is only One name like in the
|
1162
|
+
# example above, punt and assume the last bit is the class name.
|
1163
|
+
|
1164
|
+
# Ignore a :: prefix, if exists so we can find the first real name.
|
1165
|
+
i = 0
|
1166
|
+
if token_seq[0].name == '::':
|
1167
|
+
i = 1
|
1168
|
+
# Ignore a :: suffix, if exists.
|
1169
|
+
end = len(token_seq) - 1
|
1170
|
+
if token_seq[end-1].name == '::':
|
1171
|
+
end -= 1
|
1172
|
+
|
1173
|
+
# Make a copy of the sequence so we can append a sentinel
|
1174
|
+
# value. This is required for GetName will has to have some
|
1175
|
+
# terminating condition beyond the last name.
|
1176
|
+
seq_copy = token_seq[i:end]
|
1177
|
+
seq_copy.append(tokenize.Token(tokenize.SYNTAX, '', 0, 0))
|
1178
|
+
names = []
|
1179
|
+
while i < end:
|
1180
|
+
# Iterate through the sequence parsing out each name.
|
1181
|
+
new_name, next = self.GetName(seq_copy[i:])
|
1182
|
+
assert new_name, 'Got empty new_name, next=%s' % next
|
1183
|
+
# We got a pointer or ref. Add it to the name.
|
1184
|
+
if next and next.token_type == tokenize.SYNTAX:
|
1185
|
+
new_name.append(next)
|
1186
|
+
names.append(new_name)
|
1187
|
+
i += len(new_name)
|
1188
|
+
|
1189
|
+
# Now that we have the names, it's time to undo what we did.
|
1190
|
+
|
1191
|
+
# Remove the sentinel value.
|
1192
|
+
names[-1].pop()
|
1193
|
+
# Flatten the token sequence for the return type.
|
1194
|
+
return_type = [e for seq in names[:-1] for e in seq]
|
1195
|
+
# The class name is the last name.
|
1196
|
+
class_name = names[-1]
|
1197
|
+
return return_type, class_name
|
1198
|
+
|
1199
|
+
def handle_bool(self):
|
1200
|
+
pass
|
1201
|
+
|
1202
|
+
def handle_char(self):
|
1203
|
+
pass
|
1204
|
+
|
1205
|
+
def handle_int(self):
|
1206
|
+
pass
|
1207
|
+
|
1208
|
+
def handle_long(self):
|
1209
|
+
pass
|
1210
|
+
|
1211
|
+
def handle_short(self):
|
1212
|
+
pass
|
1213
|
+
|
1214
|
+
def handle_double(self):
|
1215
|
+
pass
|
1216
|
+
|
1217
|
+
def handle_float(self):
|
1218
|
+
pass
|
1219
|
+
|
1220
|
+
def handle_void(self):
|
1221
|
+
pass
|
1222
|
+
|
1223
|
+
def handle_wchar_t(self):
|
1224
|
+
pass
|
1225
|
+
|
1226
|
+
def handle_unsigned(self):
|
1227
|
+
pass
|
1228
|
+
|
1229
|
+
def handle_signed(self):
|
1230
|
+
pass
|
1231
|
+
|
1232
|
+
def _GetNestedType(self, ctor):
|
1233
|
+
name = None
|
1234
|
+
name_tokens, token = self.GetName()
|
1235
|
+
if name_tokens:
|
1236
|
+
name = ''.join([t.name for t in name_tokens])
|
1237
|
+
|
1238
|
+
# Handle forward declarations.
|
1239
|
+
if token.token_type == tokenize.SYNTAX and token.name == ';':
|
1240
|
+
return ctor(token.start, token.end, name, None,
|
1241
|
+
self.namespace_stack)
|
1242
|
+
|
1243
|
+
if token.token_type == tokenize.NAME and self._handling_typedef:
|
1244
|
+
self._AddBackToken(token)
|
1245
|
+
return ctor(token.start, token.end, name, None,
|
1246
|
+
self.namespace_stack)
|
1247
|
+
|
1248
|
+
# Must be the type declaration.
|
1249
|
+
fields = list(self._GetMatchingChar('{', '}'))
|
1250
|
+
del fields[-1] # Remove trailing '}'.
|
1251
|
+
if token.token_type == tokenize.SYNTAX and token.name == '{':
|
1252
|
+
next = self._GetNextToken()
|
1253
|
+
new_type = ctor(token.start, token.end, name, fields,
|
1254
|
+
self.namespace_stack)
|
1255
|
+
# A name means this is an anonymous type and the name
|
1256
|
+
# is the variable declaration.
|
1257
|
+
if next.token_type != tokenize.NAME:
|
1258
|
+
return new_type
|
1259
|
+
name = new_type
|
1260
|
+
token = next
|
1261
|
+
|
1262
|
+
# Must be variable declaration using the type prefixed with keyword.
|
1263
|
+
assert token.token_type == tokenize.NAME, token
|
1264
|
+
return self._CreateVariable(token, token.name, name, [], '', None)
|
1265
|
+
|
1266
|
+
def handle_struct(self):
|
1267
|
+
# Special case the handling typedef/aliasing of structs here.
|
1268
|
+
# It would be a pain to handle in the class code.
|
1269
|
+
name_tokens, var_token = self.GetName()
|
1270
|
+
if name_tokens:
|
1271
|
+
next_token = self._GetNextToken()
|
1272
|
+
is_syntax = (var_token.token_type == tokenize.SYNTAX and
|
1273
|
+
var_token.name[0] in '*&')
|
1274
|
+
is_variable = (var_token.token_type == tokenize.NAME and
|
1275
|
+
next_token.name == ';')
|
1276
|
+
variable = var_token
|
1277
|
+
if is_syntax and not is_variable:
|
1278
|
+
variable = next_token
|
1279
|
+
temp = self._GetNextToken()
|
1280
|
+
if temp.token_type == tokenize.SYNTAX and temp.name == '(':
|
1281
|
+
# Handle methods declared to return a struct.
|
1282
|
+
t0 = name_tokens[0]
|
1283
|
+
struct = tokenize.Token(tokenize.NAME, 'struct',
|
1284
|
+
t0.start-7, t0.start-2)
|
1285
|
+
type_and_name = [struct]
|
1286
|
+
type_and_name.extend(name_tokens)
|
1287
|
+
type_and_name.extend((var_token, next_token))
|
1288
|
+
return self._GetMethod(type_and_name, 0, None, False)
|
1289
|
+
assert temp.name == ';', (temp, name_tokens, var_token)
|
1290
|
+
if is_syntax or (is_variable and not self._handling_typedef):
|
1291
|
+
modifiers = ['struct']
|
1292
|
+
type_name = ''.join([t.name for t in name_tokens])
|
1293
|
+
position = name_tokens[0]
|
1294
|
+
return self._CreateVariable(position, variable.name, type_name,
|
1295
|
+
modifiers, var_token.name, None)
|
1296
|
+
name_tokens.extend((var_token, next_token))
|
1297
|
+
self._AddBackTokens(name_tokens)
|
1298
|
+
else:
|
1299
|
+
self._AddBackToken(var_token)
|
1300
|
+
return self._GetClass(Struct, VISIBILITY_PUBLIC, None)
|
1301
|
+
|
1302
|
+
def handle_union(self):
|
1303
|
+
return self._GetNestedType(Union)
|
1304
|
+
|
1305
|
+
def handle_enum(self):
|
1306
|
+
return self._GetNestedType(Enum)
|
1307
|
+
|
1308
|
+
def handle_auto(self):
|
1309
|
+
# TODO(nnorwitz): warn about using auto? Probably not since it
|
1310
|
+
# will be reclaimed and useful for C++0x.
|
1311
|
+
pass
|
1312
|
+
|
1313
|
+
def handle_register(self):
|
1314
|
+
pass
|
1315
|
+
|
1316
|
+
def handle_const(self):
|
1317
|
+
pass
|
1318
|
+
|
1319
|
+
def handle_inline(self):
|
1320
|
+
pass
|
1321
|
+
|
1322
|
+
def handle_extern(self):
|
1323
|
+
pass
|
1324
|
+
|
1325
|
+
def handle_static(self):
|
1326
|
+
pass
|
1327
|
+
|
1328
|
+
def handle_virtual(self):
|
1329
|
+
# What follows must be a method.
|
1330
|
+
token = token2 = self._GetNextToken()
|
1331
|
+
if token.name == 'inline':
|
1332
|
+
# HACK(nnorwitz): handle inline dtors by ignoring 'inline'.
|
1333
|
+
token2 = self._GetNextToken()
|
1334
|
+
if token2.token_type == tokenize.SYNTAX and token2.name == '~':
|
1335
|
+
return self.GetMethod(FUNCTION_VIRTUAL + FUNCTION_DTOR, None)
|
1336
|
+
assert token.token_type == tokenize.NAME or token.name == '::', token
|
1337
|
+
return_type_and_name, _ = self._GetVarTokensUpToIgnoringTemplates(
|
1338
|
+
tokenize.SYNTAX, '(') # )
|
1339
|
+
return_type_and_name.insert(0, token)
|
1340
|
+
if token2 is not token:
|
1341
|
+
return_type_and_name.insert(1, token2)
|
1342
|
+
return self._GetMethod(return_type_and_name, FUNCTION_VIRTUAL,
|
1343
|
+
None, False)
|
1344
|
+
|
1345
|
+
def handle_volatile(self):
|
1346
|
+
pass
|
1347
|
+
|
1348
|
+
def handle_mutable(self):
|
1349
|
+
pass
|
1350
|
+
|
1351
|
+
def handle_public(self):
|
1352
|
+
assert self.in_class
|
1353
|
+
self.visibility = VISIBILITY_PUBLIC
|
1354
|
+
|
1355
|
+
def handle_protected(self):
|
1356
|
+
assert self.in_class
|
1357
|
+
self.visibility = VISIBILITY_PROTECTED
|
1358
|
+
|
1359
|
+
def handle_private(self):
|
1360
|
+
assert self.in_class
|
1361
|
+
self.visibility = VISIBILITY_PRIVATE
|
1362
|
+
|
1363
|
+
def handle_friend(self):
|
1364
|
+
tokens = self._GetTokensUpTo(tokenize.SYNTAX, ';')
|
1365
|
+
assert tokens
|
1366
|
+
t0 = tokens[0]
|
1367
|
+
return Friend(t0.start, t0.end, tokens, self.namespace_stack)
|
1368
|
+
|
1369
|
+
def handle_static_cast(self):
|
1370
|
+
pass
|
1371
|
+
|
1372
|
+
def handle_const_cast(self):
|
1373
|
+
pass
|
1374
|
+
|
1375
|
+
def handle_dynamic_cast(self):
|
1376
|
+
pass
|
1377
|
+
|
1378
|
+
def handle_reinterpret_cast(self):
|
1379
|
+
pass
|
1380
|
+
|
1381
|
+
def handle_new(self):
|
1382
|
+
pass
|
1383
|
+
|
1384
|
+
def handle_delete(self):
|
1385
|
+
tokens = self._GetTokensUpTo(tokenize.SYNTAX, ';')
|
1386
|
+
assert tokens
|
1387
|
+
return Delete(tokens[0].start, tokens[0].end, tokens)
|
1388
|
+
|
1389
|
+
def handle_typedef(self):
|
1390
|
+
token = self._GetNextToken()
|
1391
|
+
if (token.token_type == tokenize.NAME and
|
1392
|
+
keywords.IsKeyword(token.name)):
|
1393
|
+
# Token must be struct/enum/union/class.
|
1394
|
+
method = getattr(self, 'handle_' + token.name)
|
1395
|
+
self._handling_typedef = True
|
1396
|
+
tokens = [method()]
|
1397
|
+
self._handling_typedef = False
|
1398
|
+
else:
|
1399
|
+
tokens = [token]
|
1400
|
+
|
1401
|
+
# Get the remainder of the typedef up to the semi-colon.
|
1402
|
+
tokens.extend(self._GetTokensUpTo(tokenize.SYNTAX, ';'))
|
1403
|
+
|
1404
|
+
# TODO(nnorwitz): clean all this up.
|
1405
|
+
assert tokens
|
1406
|
+
name = tokens.pop()
|
1407
|
+
indices = name
|
1408
|
+
if tokens:
|
1409
|
+
indices = tokens[0]
|
1410
|
+
if not indices:
|
1411
|
+
indices = token
|
1412
|
+
if name.name == ')':
|
1413
|
+
# HACK(nnorwitz): Handle pointers to functions "properly".
|
1414
|
+
if (len(tokens) >= 4 and
|
1415
|
+
tokens[1].name == '(' and tokens[2].name == '*'):
|
1416
|
+
tokens.append(name)
|
1417
|
+
name = tokens[3]
|
1418
|
+
elif name.name == ']':
|
1419
|
+
# HACK(nnorwitz): Handle arrays properly.
|
1420
|
+
if len(tokens) >= 2:
|
1421
|
+
tokens.append(name)
|
1422
|
+
name = tokens[1]
|
1423
|
+
new_type = tokens
|
1424
|
+
if tokens and isinstance(tokens[0], tokenize.Token):
|
1425
|
+
new_type = self.converter.ToType(tokens)[0]
|
1426
|
+
return Typedef(indices.start, indices.end, name.name,
|
1427
|
+
new_type, self.namespace_stack)
|
1428
|
+
|
1429
|
+
def handle_typeid(self):
|
1430
|
+
pass # Not needed yet.
|
1431
|
+
|
1432
|
+
def handle_typename(self):
|
1433
|
+
pass # Not needed yet.
|
1434
|
+
|
1435
|
+
def _GetTemplatedTypes(self):
|
1436
|
+
result = {}
|
1437
|
+
tokens = list(self._GetMatchingChar('<', '>'))
|
1438
|
+
len_tokens = len(tokens) - 1 # Ignore trailing '>'.
|
1439
|
+
i = 0
|
1440
|
+
while i < len_tokens:
|
1441
|
+
key = tokens[i].name
|
1442
|
+
i += 1
|
1443
|
+
if keywords.IsKeyword(key) or key == ',':
|
1444
|
+
continue
|
1445
|
+
type_name = default = None
|
1446
|
+
if i < len_tokens:
|
1447
|
+
i += 1
|
1448
|
+
if tokens[i-1].name == '=':
|
1449
|
+
assert i < len_tokens, '%s %s' % (i, tokens)
|
1450
|
+
default, unused_next_token = self.GetName(tokens[i:])
|
1451
|
+
i += len(default)
|
1452
|
+
else:
|
1453
|
+
if tokens[i-1].name != ',':
|
1454
|
+
# We got something like: Type variable.
|
1455
|
+
# Re-adjust the key (variable) and type_name (Type).
|
1456
|
+
key = tokens[i-1].name
|
1457
|
+
type_name = tokens[i-2]
|
1458
|
+
|
1459
|
+
result[key] = (type_name, default)
|
1460
|
+
return result
|
1461
|
+
|
1462
|
+
def handle_template(self):
|
1463
|
+
token = self._GetNextToken()
|
1464
|
+
assert token.token_type == tokenize.SYNTAX, token
|
1465
|
+
assert token.name == '<', token
|
1466
|
+
templated_types = self._GetTemplatedTypes()
|
1467
|
+
# TODO(nnorwitz): for now, just ignore the template params.
|
1468
|
+
token = self._GetNextToken()
|
1469
|
+
if token.token_type == tokenize.NAME:
|
1470
|
+
if token.name == 'class':
|
1471
|
+
return self._GetClass(Class, VISIBILITY_PRIVATE, templated_types)
|
1472
|
+
elif token.name == 'struct':
|
1473
|
+
return self._GetClass(Struct, VISIBILITY_PUBLIC, templated_types)
|
1474
|
+
elif token.name == 'friend':
|
1475
|
+
return self.handle_friend()
|
1476
|
+
self._AddBackToken(token)
|
1477
|
+
tokens, last = self._GetVarTokensUpTo(tokenize.SYNTAX, '(', ';')
|
1478
|
+
tokens.append(last)
|
1479
|
+
self._AddBackTokens(tokens)
|
1480
|
+
if last.name == '(':
|
1481
|
+
return self.GetMethod(FUNCTION_NONE, templated_types)
|
1482
|
+
# Must be a variable definition.
|
1483
|
+
return None
|
1484
|
+
|
1485
|
+
def handle_true(self):
|
1486
|
+
pass # Nothing to do.
|
1487
|
+
|
1488
|
+
def handle_false(self):
|
1489
|
+
pass # Nothing to do.
|
1490
|
+
|
1491
|
+
def handle_asm(self):
|
1492
|
+
pass # Not needed yet.
|
1493
|
+
|
1494
|
+
def handle_class(self):
|
1495
|
+
return self._GetClass(Class, VISIBILITY_PRIVATE, None)
|
1496
|
+
|
1497
|
+
def _GetBases(self):
|
1498
|
+
# Get base classes.
|
1499
|
+
bases = []
|
1500
|
+
while 1:
|
1501
|
+
token = self._GetNextToken()
|
1502
|
+
assert token.token_type == tokenize.NAME, token
|
1503
|
+
# TODO(nnorwitz): store kind of inheritance...maybe.
|
1504
|
+
if token.name not in ('public', 'protected', 'private'):
|
1505
|
+
# If inheritance type is not specified, it is private.
|
1506
|
+
# Just put the token back so we can form a name.
|
1507
|
+
# TODO(nnorwitz): it would be good to warn about this.
|
1508
|
+
self._AddBackToken(token)
|
1509
|
+
else:
|
1510
|
+
# Check for virtual inheritance.
|
1511
|
+
token = self._GetNextToken()
|
1512
|
+
if token.name != 'virtual':
|
1513
|
+
self._AddBackToken(token)
|
1514
|
+
else:
|
1515
|
+
# TODO(nnorwitz): store that we got virtual for this base.
|
1516
|
+
pass
|
1517
|
+
base, next_token = self.GetName()
|
1518
|
+
bases_ast = self.converter.ToType(base)
|
1519
|
+
assert len(bases_ast) == 1, bases_ast
|
1520
|
+
bases.append(bases_ast[0])
|
1521
|
+
assert next_token.token_type == tokenize.SYNTAX, next_token
|
1522
|
+
if next_token.name == '{':
|
1523
|
+
token = next_token
|
1524
|
+
break
|
1525
|
+
# Support multiple inheritance.
|
1526
|
+
assert next_token.name == ',', next_token
|
1527
|
+
return bases, token
|
1528
|
+
|
1529
|
+
def _GetClass(self, class_type, visibility, templated_types):
|
1530
|
+
class_name = None
|
1531
|
+
class_token = self._GetNextToken()
|
1532
|
+
if class_token.token_type != tokenize.NAME:
|
1533
|
+
assert class_token.token_type == tokenize.SYNTAX, class_token
|
1534
|
+
token = class_token
|
1535
|
+
else:
|
1536
|
+
# Skip any macro (e.g. storage class specifiers) after the
|
1537
|
+
# 'class' keyword.
|
1538
|
+
next_token = self._GetNextToken()
|
1539
|
+
if next_token.token_type == tokenize.NAME:
|
1540
|
+
self._AddBackToken(next_token)
|
1541
|
+
else:
|
1542
|
+
self._AddBackTokens([class_token, next_token])
|
1543
|
+
name_tokens, token = self.GetName()
|
1544
|
+
class_name = ''.join([t.name for t in name_tokens])
|
1545
|
+
bases = None
|
1546
|
+
if token.token_type == tokenize.SYNTAX:
|
1547
|
+
if token.name == ';':
|
1548
|
+
# Forward declaration.
|
1549
|
+
return class_type(class_token.start, class_token.end,
|
1550
|
+
class_name, None, templated_types, None,
|
1551
|
+
self.namespace_stack)
|
1552
|
+
if token.name in '*&':
|
1553
|
+
# Inline forward declaration. Could be method or data.
|
1554
|
+
name_token = self._GetNextToken()
|
1555
|
+
next_token = self._GetNextToken()
|
1556
|
+
if next_token.name == ';':
|
1557
|
+
# Handle data
|
1558
|
+
modifiers = ['class']
|
1559
|
+
return self._CreateVariable(class_token, name_token.name,
|
1560
|
+
class_name,
|
1561
|
+
modifiers, token.name, None)
|
1562
|
+
else:
|
1563
|
+
# Assume this is a method.
|
1564
|
+
tokens = (class_token, token, name_token, next_token)
|
1565
|
+
self._AddBackTokens(tokens)
|
1566
|
+
return self.GetMethod(FUNCTION_NONE, None)
|
1567
|
+
if token.name == ':':
|
1568
|
+
bases, token = self._GetBases()
|
1569
|
+
|
1570
|
+
body = None
|
1571
|
+
if token.token_type == tokenize.SYNTAX and token.name == '{':
|
1572
|
+
assert token.token_type == tokenize.SYNTAX, token
|
1573
|
+
assert token.name == '{', token
|
1574
|
+
|
1575
|
+
ast = AstBuilder(self.GetScope(), self.filename, class_name,
|
1576
|
+
visibility, self.namespace_stack)
|
1577
|
+
body = list(ast.Generate())
|
1578
|
+
|
1579
|
+
if not self._handling_typedef:
|
1580
|
+
token = self._GetNextToken()
|
1581
|
+
if token.token_type != tokenize.NAME:
|
1582
|
+
assert token.token_type == tokenize.SYNTAX, token
|
1583
|
+
assert token.name == ';', token
|
1584
|
+
else:
|
1585
|
+
new_class = class_type(class_token.start, class_token.end,
|
1586
|
+
class_name, bases, None,
|
1587
|
+
body, self.namespace_stack)
|
1588
|
+
|
1589
|
+
modifiers = []
|
1590
|
+
return self._CreateVariable(class_token,
|
1591
|
+
token.name, new_class,
|
1592
|
+
modifiers, token.name, None)
|
1593
|
+
else:
|
1594
|
+
if not self._handling_typedef:
|
1595
|
+
self.HandleError('non-typedef token', token)
|
1596
|
+
self._AddBackToken(token)
|
1597
|
+
|
1598
|
+
return class_type(class_token.start, class_token.end, class_name,
|
1599
|
+
bases, templated_types, body, self.namespace_stack)
|
1600
|
+
|
1601
|
+
def handle_namespace(self):
|
1602
|
+
# Support anonymous namespaces.
|
1603
|
+
name = None
|
1604
|
+
name_tokens, token = self.GetName()
|
1605
|
+
if name_tokens:
|
1606
|
+
name = ''.join([t.name for t in name_tokens])
|
1607
|
+
self.namespace_stack.append(name)
|
1608
|
+
assert token.token_type == tokenize.SYNTAX, token
|
1609
|
+
# Create an internal token that denotes when the namespace is complete.
|
1610
|
+
internal_token = tokenize.Token(_INTERNAL_TOKEN, _NAMESPACE_POP,
|
1611
|
+
None, None)
|
1612
|
+
internal_token.whence = token.whence
|
1613
|
+
if token.name == '=':
|
1614
|
+
# TODO(nnorwitz): handle aliasing namespaces.
|
1615
|
+
name, next_token = self.GetName()
|
1616
|
+
assert next_token.name == ';', next_token
|
1617
|
+
self._AddBackToken(internal_token)
|
1618
|
+
else:
|
1619
|
+
assert token.name == '{', token
|
1620
|
+
tokens = list(self.GetScope())
|
1621
|
+
# Replace the trailing } with the internal namespace pop token.
|
1622
|
+
tokens[-1] = internal_token
|
1623
|
+
# Handle namespace with nothing in it.
|
1624
|
+
self._AddBackTokens(tokens)
|
1625
|
+
return None
|
1626
|
+
|
1627
|
+
def handle_using(self):
|
1628
|
+
tokens = self._GetTokensUpTo(tokenize.SYNTAX, ';')
|
1629
|
+
assert tokens
|
1630
|
+
return Using(tokens[0].start, tokens[0].end, tokens)
|
1631
|
+
|
1632
|
+
def handle_explicit(self):
|
1633
|
+
assert self.in_class
|
1634
|
+
# Nothing much to do.
|
1635
|
+
# TODO(nnorwitz): maybe verify the method name == class name.
|
1636
|
+
# This must be a ctor.
|
1637
|
+
return self.GetMethod(FUNCTION_CTOR, None)
|
1638
|
+
|
1639
|
+
def handle_this(self):
|
1640
|
+
pass # Nothing to do.
|
1641
|
+
|
1642
|
+
def handle_operator(self):
|
1643
|
+
# Pull off the next token(s?) and make that part of the method name.
|
1644
|
+
pass
|
1645
|
+
|
1646
|
+
def handle_sizeof(self):
|
1647
|
+
pass
|
1648
|
+
|
1649
|
+
def handle_case(self):
|
1650
|
+
pass
|
1651
|
+
|
1652
|
+
def handle_switch(self):
|
1653
|
+
pass
|
1654
|
+
|
1655
|
+
def handle_default(self):
|
1656
|
+
token = self._GetNextToken()
|
1657
|
+
assert token.token_type == tokenize.SYNTAX
|
1658
|
+
assert token.name == ':'
|
1659
|
+
|
1660
|
+
def handle_if(self):
|
1661
|
+
pass
|
1662
|
+
|
1663
|
+
def handle_else(self):
|
1664
|
+
pass
|
1665
|
+
|
1666
|
+
def handle_return(self):
|
1667
|
+
tokens = self._GetTokensUpTo(tokenize.SYNTAX, ';')
|
1668
|
+
if not tokens:
|
1669
|
+
return Return(self.current_token.start, self.current_token.end, None)
|
1670
|
+
return Return(tokens[0].start, tokens[0].end, tokens)
|
1671
|
+
|
1672
|
+
def handle_goto(self):
|
1673
|
+
tokens = self._GetTokensUpTo(tokenize.SYNTAX, ';')
|
1674
|
+
assert len(tokens) == 1, str(tokens)
|
1675
|
+
return Goto(tokens[0].start, tokens[0].end, tokens[0].name)
|
1676
|
+
|
1677
|
+
def handle_try(self):
|
1678
|
+
pass # Not needed yet.
|
1679
|
+
|
1680
|
+
def handle_catch(self):
|
1681
|
+
pass # Not needed yet.
|
1682
|
+
|
1683
|
+
def handle_throw(self):
|
1684
|
+
pass # Not needed yet.
|
1685
|
+
|
1686
|
+
def handle_while(self):
|
1687
|
+
pass
|
1688
|
+
|
1689
|
+
def handle_do(self):
|
1690
|
+
pass
|
1691
|
+
|
1692
|
+
def handle_for(self):
|
1693
|
+
pass
|
1694
|
+
|
1695
|
+
def handle_break(self):
|
1696
|
+
self._IgnoreUpTo(tokenize.SYNTAX, ';')
|
1697
|
+
|
1698
|
+
def handle_continue(self):
|
1699
|
+
self._IgnoreUpTo(tokenize.SYNTAX, ';')
|
1700
|
+
|
1701
|
+
|
1702
|
+
def BuilderFromSource(source, filename):
|
1703
|
+
"""Utility method that returns an AstBuilder from source code.
|
1704
|
+
|
1705
|
+
Args:
|
1706
|
+
source: 'C++ source code'
|
1707
|
+
filename: 'file1'
|
1708
|
+
|
1709
|
+
Returns:
|
1710
|
+
AstBuilder
|
1711
|
+
"""
|
1712
|
+
return AstBuilder(tokenize.GetTokens(source), filename)
|
1713
|
+
|
1714
|
+
|
1715
|
+
def PrintIndentifiers(filename, should_print):
|
1716
|
+
"""Prints all identifiers for a C++ source file.
|
1717
|
+
|
1718
|
+
Args:
|
1719
|
+
filename: 'file1'
|
1720
|
+
should_print: predicate with signature: bool Function(token)
|
1721
|
+
"""
|
1722
|
+
source = utils.ReadFile(filename, False)
|
1723
|
+
if source is None:
|
1724
|
+
sys.stderr.write('Unable to find: %s\n' % filename)
|
1725
|
+
return
|
1726
|
+
|
1727
|
+
#print('Processing %s' % actual_filename)
|
1728
|
+
builder = BuilderFromSource(source, filename)
|
1729
|
+
try:
|
1730
|
+
for node in builder.Generate():
|
1731
|
+
if should_print(node):
|
1732
|
+
print(node.name)
|
1733
|
+
except KeyboardInterrupt:
|
1734
|
+
return
|
1735
|
+
except:
|
1736
|
+
pass
|
1737
|
+
|
1738
|
+
|
1739
|
+
def PrintAllIndentifiers(filenames, should_print):
|
1740
|
+
"""Prints all identifiers for each C++ source file in filenames.
|
1741
|
+
|
1742
|
+
Args:
|
1743
|
+
filenames: ['file1', 'file2', ...]
|
1744
|
+
should_print: predicate with signature: bool Function(token)
|
1745
|
+
"""
|
1746
|
+
for path in filenames:
|
1747
|
+
PrintIndentifiers(path, should_print)
|
1748
|
+
|
1749
|
+
|
1750
|
+
def main(argv):
|
1751
|
+
for filename in argv[1:]:
|
1752
|
+
source = utils.ReadFile(filename)
|
1753
|
+
if source is None:
|
1754
|
+
continue
|
1755
|
+
|
1756
|
+
print('Processing %s' % filename)
|
1757
|
+
builder = BuilderFromSource(source, filename)
|
1758
|
+
try:
|
1759
|
+
entire_ast = filter(None, builder.Generate())
|
1760
|
+
except KeyboardInterrupt:
|
1761
|
+
return
|
1762
|
+
except:
|
1763
|
+
# Already printed a warning, print the traceback and continue.
|
1764
|
+
traceback.print_exc()
|
1765
|
+
else:
|
1766
|
+
if utils.DEBUG:
|
1767
|
+
for ast in entire_ast:
|
1768
|
+
print(ast)
|
1769
|
+
|
1770
|
+
|
1771
|
+
if __name__ == '__main__':
|
1772
|
+
main(sys.argv)
|