Switch __fbthrift_ordinal to use reflection data
commit8ec7fc328bede7c9864ed7b5abac693fecf9d253
authorTJ Yin <ytj@meta.com>
Wed, 11 Jan 2023 09:21:49 +0000 (11 01:21 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 11 Jan 2023 09:21:49 +0000 (11 01:21 -0800)
treed68b0efb83202e09e53bc6f4e28aec1458d8af70
parent159ab6384ecdefc0903c2561ecafc4dba1c1fa66
Switch __fbthrift_ordinal to use reflection data

Summary: Reduce the build-time when reflection is not used

Reviewed By: thedavekwon

Differential Revision: D42352001

fbshipit-source-id: 4b94213a214f67582d7e82c697e51409fe9f97df
18 files changed:
third-party/thrift/src/thrift/compiler/generate/templates/cpp2/module_types_h/reflection.mustache
third-party/thrift/src/thrift/compiler/test/fixtures/adapter/gen-cpp2/module_types.h
third-party/thrift/src/thrift/compiler/test/fixtures/any/gen-cpp2/module_types.h
third-party/thrift/src/thrift/compiler/test/fixtures/basic-annotations/gen-cpp2/module_types.h
third-party/thrift/src/thrift/compiler/test/fixtures/basic-structured-annotations/gen-cpp2/module_types.h
third-party/thrift/src/thrift/compiler/test/fixtures/basic/gen-cpp2/module_types.h
third-party/thrift/src/thrift/compiler/test/fixtures/encode/gen-cpp2/module_types.h
third-party/thrift/src/thrift/compiler/test/fixtures/enums/gen-cpp2/module_types.h
third-party/thrift/src/thrift/compiler/test/fixtures/fatal/gen-cpp2/module_types.h
third-party/thrift/src/thrift/compiler/test/fixtures/field_interceptor/gen-cpp2/module_types.h
third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/gen-cpp2/module_types.h
third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/gen-cpp2/module_types.h
third-party/thrift/src/thrift/compiler/test/fixtures/no-legacy-apis/gen-cpp2/module_types.h
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-cpp2/module_types.h
third-party/thrift/src/thrift/compiler/test/fixtures/terse_write/gen-cpp2/deprecated_terse_write_types.h
third-party/thrift/src/thrift/compiler/test/fixtures/terse_write/gen-cpp2/terse_write_types.h
third-party/thrift/src/thrift/compiler/test/fixtures/types/gen-cpp2/module_types.h
third-party/thrift/src/thrift/lib/cpp2/gen/module_types_h.h