/** * Autogenerated by Thrift for thrift/compiler/test/fixtures/encode/src/module.thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @nocommit */ #include "thrift/compiler/test/fixtures/encode/gen-cpp2/module_data.h" #include FOLLY_CLANG_DISABLE_WARNING("-Wunused-macros") #if defined(__GNUC__) && defined(__linux__) && !FOLLY_MOBILE // These attributes are applied to the static data members to ensure that they // are not stripped from the compiled binary, in order to keep them available // for use by debuggers at runtime. // // The "used" attribute is required to ensure the compiler always emits unused // data. // // The "section" attribute is required to stop the linker from stripping used // data. It works by forcing all of the data members (both used and unused ones) // into the same section. As the linker strips data on a per-section basis, it // is then unable to remove unused data without also removing used data. // This has a similar effect to the "retain" attribute, but works with older // toolchains. #define THRIFT_DATA_MEMBER [[gnu::used]] [[gnu::section(".rodata.thrift.data")]] #else #define THRIFT_DATA_MEMBER #endif namespace apache { namespace thrift { THRIFT_DATA_MEMBER const std::string_view TStructDataStorage<::facebook::thrift::test::Foo>::name = "Foo"; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::facebook::thrift::test::Foo>::fields_names = { { "field"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::facebook::thrift::test::Foo>::fields_ids = { { 1, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::facebook::thrift::test::Foo>::fields_types = { { TType::T_I32, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::facebook::thrift::test::Foo>::storage_names = { { "__fbthrift_field_field"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::facebook::thrift::test::Foo>::isset_indexes = { { 0, }}; THRIFT_DATA_MEMBER const std::string_view TStructDataStorage<::facebook::thrift::test::Bar>::name = "Bar"; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::facebook::thrift::test::Bar>::fields_names = { { "list_field"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::facebook::thrift::test::Bar>::fields_ids = { { 1, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::facebook::thrift::test::Bar>::fields_types = { { TType::T_LIST, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::facebook::thrift::test::Bar>::storage_names = { { "__fbthrift_field_list_field"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::facebook::thrift::test::Bar>::isset_indexes = { { 0, }}; THRIFT_DATA_MEMBER const std::string_view TStructDataStorage<::facebook::thrift::test::Baz>::name = "Baz"; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::facebook::thrift::test::Baz>::fields_names = { { "list_field"sv, "nested_list_field"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::facebook::thrift::test::Baz>::fields_ids = { { 1, 2, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::facebook::thrift::test::Baz>::fields_types = { { TType::T_LIST, TType::T_LIST, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::facebook::thrift::test::Baz>::storage_names = { { "__fbthrift_field_list_field"sv, "__fbthrift_field_nested_list_field"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::facebook::thrift::test::Baz>::isset_indexes = { { 0, 1, }}; THRIFT_DATA_MEMBER const std::string_view TStructDataStorage<::facebook::thrift::test::OpEncodeStruct>::name = "OpEncodeStruct"; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::facebook::thrift::test::OpEncodeStruct>::fields_names = { { "int_field"sv, "enum_field"sv, "foo_field"sv, "adapted_field"sv, "list_field"sv, "list_shared_ptr_field"sv, "list_cpp_type_field"sv, "set_field"sv, "map_field"sv, "nested_field"sv, "bar_field"sv, "adapted_list_field"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::facebook::thrift::test::OpEncodeStruct>::fields_ids = { { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::facebook::thrift::test::OpEncodeStruct>::fields_types = { { TType::T_I32, TType::T_I32, TType::T_STRUCT, TType::T_STRUCT, TType::T_LIST, TType::T_LIST, TType::T_LIST, TType::T_SET, TType::T_MAP, TType::T_MAP, TType::T_STRUCT, TType::T_LIST, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::facebook::thrift::test::OpEncodeStruct>::storage_names = { { "__fbthrift_field_int_field"sv, "__fbthrift_field_enum_field"sv, "__fbthrift_field_foo_field"sv, "__fbthrift_field_adapted_field"sv, "__fbthrift_field_list_field"sv, "__fbthrift_field_list_shared_ptr_field"sv, "__fbthrift_field_list_cpp_type_field"sv, "__fbthrift_field_set_field"sv, "__fbthrift_field_map_field"sv, "__fbthrift_field_nested_field"sv, "__fbthrift_field_bar_field"sv, "__fbthrift_field_adapted_list_field"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::facebook::thrift::test::OpEncodeStruct>::isset_indexes = { { 0, 1, 2, 3, 4, -1, 5, 6, 7, 8, 9, 10, }}; } // namespace thrift } // namespace apache