blob: f22e77037a2b234987e3653775aec8cbfcbeb6d5 [file] [log] [blame]
// WARNING: This file is machine generated by fidlgen.
// fidl_experiment = output_index_json
#include <fidl/test.bindingsdenylist/cpp/natural_types.h>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wshadow"
::test_bindingsdenylist::DenyEachBindingOnlyDenyDartRequest::Storage_ test_bindingsdenylist::DenyEachBindingOnlyDenyDartRequest::CloneStorage_() const {
return Storage_{
::fidl::internal::NaturalClone(storage_.a)};
}
::test_bindingsdenylist::DenyEachBindingOnlyDenyDartResponse::Storage_ test_bindingsdenylist::DenyEachBindingOnlyDenyDartResponse::CloneStorage_() const {
return Storage_{
::fidl::internal::NaturalClone(storage_.b)};
}
::test_bindingsdenylist::DenyEachBindingOnlyDenyGoRequest::Storage_ test_bindingsdenylist::DenyEachBindingOnlyDenyGoRequest::CloneStorage_() const {
return Storage_{
::fidl::internal::NaturalClone(storage_.a)};
}
::test_bindingsdenylist::DenyEachBindingOnlyDenyGoResponse::Storage_ test_bindingsdenylist::DenyEachBindingOnlyDenyGoResponse::CloneStorage_() const {
return Storage_{
::fidl::internal::NaturalClone(storage_.b)};
}
::test_bindingsdenylist::DenyEachBindingOnlyDenyLibfuzzerRequest::Storage_ test_bindingsdenylist::DenyEachBindingOnlyDenyLibfuzzerRequest::CloneStorage_() const {
return Storage_{
::fidl::internal::NaturalClone(storage_.a)};
}
::test_bindingsdenylist::DenyEachBindingOnlyDenyLibfuzzerResponse::Storage_ test_bindingsdenylist::DenyEachBindingOnlyDenyLibfuzzerResponse::CloneStorage_() const {
return Storage_{
::fidl::internal::NaturalClone(storage_.b)};
}
::test_bindingsdenylist::DenyEachBindingOnlyDenyRustRequest::Storage_ test_bindingsdenylist::DenyEachBindingOnlyDenyRustRequest::CloneStorage_() const {
return Storage_{
::fidl::internal::NaturalClone(storage_.a)};
}
::test_bindingsdenylist::DenyEachBindingOnlyDenyRustResponse::Storage_ test_bindingsdenylist::DenyEachBindingOnlyDenyRustResponse::CloneStorage_() const {
return Storage_{
::fidl::internal::NaturalClone(storage_.b)};
}
::test_bindingsdenylist::DenyEachBindingOnlyDenySyzkallerRequest::Storage_ test_bindingsdenylist::DenyEachBindingOnlyDenySyzkallerRequest::CloneStorage_() const {
return Storage_{
::fidl::internal::NaturalClone(storage_.a)};
}
::test_bindingsdenylist::DenyEachBindingOnlyDenySyzkallerResponse::Storage_ test_bindingsdenylist::DenyEachBindingOnlyDenySyzkallerResponse::CloneStorage_() const {
return Storage_{
::fidl::internal::NaturalClone(storage_.b)};
}
::test_bindingsdenylist::MemberOnlyAppearsInImportingLibrary::Storage_ test_bindingsdenylist::MemberOnlyAppearsInImportingLibrary::CloneStorage_() const {
return Storage_{
::fidl::internal::NaturalClone(storage_.a)};
}
::test_bindingsdenylist::OnlyAppearsInImportingLibrary::Storage_ test_bindingsdenylist::OnlyAppearsInImportingLibrary::CloneStorage_() const {
return Storage_{
::fidl::internal::NaturalClone(storage_.member_only_appears_in_importing_library)};
}
std::shared_ptr<::test_bindingsdenylist::OnlyLlcpp::Storage_> test_bindingsdenylist::OnlyLlcpp::CloneStorage_() const {
const Storage_& storage = *storage_;
switch (storage_->index()) {
case 1:
return std::make_shared<Storage_>(
std::in_place_index<1>,
::fidl::internal::NaturalClone(std::get<1>(storage)));
default:
return std::make_shared<Storage_>();
}
}
std::shared_ptr<::test_bindingsdenylist::DenyEachBindingOnlyDenyDartResult::Storage_> test_bindingsdenylist::DenyEachBindingOnlyDenyDartResult::CloneStorage_() const {
const Storage_& storage = *storage_;
switch (storage_->index()) {
case 1:
return std::make_shared<Storage_>(
std::in_place_index<1>,
::fidl::internal::NaturalClone(std::get<1>(storage)));
case 2:
return std::make_shared<Storage_>(
std::in_place_index<2>,
::fidl::internal::NaturalClone(std::get<2>(storage)));
default:
return std::make_shared<Storage_>();
}
}
std::shared_ptr<::test_bindingsdenylist::DenyEachBindingOnlyDenyGoResult::Storage_> test_bindingsdenylist::DenyEachBindingOnlyDenyGoResult::CloneStorage_() const {
const Storage_& storage = *storage_;
switch (storage_->index()) {
case 1:
return std::make_shared<Storage_>(
std::in_place_index<1>,
::fidl::internal::NaturalClone(std::get<1>(storage)));
case 2:
return std::make_shared<Storage_>(
std::in_place_index<2>,
::fidl::internal::NaturalClone(std::get<2>(storage)));
default:
return std::make_shared<Storage_>();
}
}
std::shared_ptr<::test_bindingsdenylist::DenyEachBindingOnlyDenyLibfuzzerResult::Storage_> test_bindingsdenylist::DenyEachBindingOnlyDenyLibfuzzerResult::CloneStorage_() const {
const Storage_& storage = *storage_;
switch (storage_->index()) {
case 1:
return std::make_shared<Storage_>(
std::in_place_index<1>,
::fidl::internal::NaturalClone(std::get<1>(storage)));
case 2:
return std::make_shared<Storage_>(
std::in_place_index<2>,
::fidl::internal::NaturalClone(std::get<2>(storage)));
default:
return std::make_shared<Storage_>();
}
}
std::shared_ptr<::test_bindingsdenylist::DenyEachBindingOnlyDenyRustResult::Storage_> test_bindingsdenylist::DenyEachBindingOnlyDenyRustResult::CloneStorage_() const {
const Storage_& storage = *storage_;
switch (storage_->index()) {
case 1:
return std::make_shared<Storage_>(
std::in_place_index<1>,
::fidl::internal::NaturalClone(std::get<1>(storage)));
case 2:
return std::make_shared<Storage_>(
std::in_place_index<2>,
::fidl::internal::NaturalClone(std::get<2>(storage)));
default:
return std::make_shared<Storage_>();
}
}
std::shared_ptr<::test_bindingsdenylist::DenyEachBindingOnlyDenySyzkallerResult::Storage_> test_bindingsdenylist::DenyEachBindingOnlyDenySyzkallerResult::CloneStorage_() const {
const Storage_& storage = *storage_;
switch (storage_->index()) {
case 1:
return std::make_shared<Storage_>(
std::in_place_index<1>,
::fidl::internal::NaturalClone(std::get<1>(storage)));
case 2:
return std::make_shared<Storage_>(
std::in_place_index<2>,
::fidl::internal::NaturalClone(std::get<2>(storage)));
default:
return std::make_shared<Storage_>();
}
}
#pragma clang diagnostic pop