support thrift struct in op::less
commit09c7fb10c99f87b14c1778f28f536fef3a951492
authorTJ Yin <ytj@meta.com>
Mon, 7 Nov 2022 13:21:03 +0000 (7 05:21 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 7 Nov 2022 13:21:03 +0000 (7 05:21 -0800)
treed5eb46c799dc90f8798086407b4a13ec60519ba4
parent6da3975c9dd7287dfdfef8db8e5f0f6def4e8b0c
support thrift struct in op::less

Summary: After this diff we can use op::less to compare two thrift struct.

Reviewed By: Alfus

Differential Revision: D41016461

fbshipit-source-id: 2b4dc84d4002ee43dfbf3884ac6930484e2e9f22
20 files changed:
third-party/thrift/src/thrift/compiler/generate/templates/cpp2/module_types_cpp/struct_operator_less.mustache
third-party/thrift/src/thrift/compiler/generate/templates/cpp2/module_types_cpp/union_operator_less.mustache
third-party/thrift/src/thrift/compiler/lib/cpp2/util.cc
third-party/thrift/src/thrift/compiler/test/fixtures/adapter/gen-cpp2/module_types.cpp
third-party/thrift/src/thrift/compiler/test/fixtures/any/gen-cpp2/module_types.cpp
third-party/thrift/src/thrift/compiler/test/fixtures/basic-annotations/gen-cpp2/module_types.cpp
third-party/thrift/src/thrift/compiler/test/fixtures/basic-structured-annotations/gen-cpp2/module_types.cpp
third-party/thrift/src/thrift/compiler/test/fixtures/basic/gen-cpp2/module_types.cpp
third-party/thrift/src/thrift/compiler/test/fixtures/encode/gen-cpp2/module_types.cpp
third-party/thrift/src/thrift/compiler/test/fixtures/enums/gen-cpp2/module_types.cpp
third-party/thrift/src/thrift/compiler/test/fixtures/fatal/gen-cpp2/module_types.cpp
third-party/thrift/src/thrift/compiler/test/fixtures/field_interceptor/gen-cpp2/module_types.cpp
third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/gen-cpp2/module_types.cpp
third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/gen-cpp2/module_types.cpp
third-party/thrift/src/thrift/compiler/test/fixtures/no-legacy-apis/gen-cpp2/module_types.cpp
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-cpp2/module_types.cpp
third-party/thrift/src/thrift/compiler/test/fixtures/terse_write/gen-cpp2/deprecated_terse_write_types.cpp
third-party/thrift/src/thrift/compiler/test/fixtures/terse_write/gen-cpp2/terse_write_types.cpp
third-party/thrift/src/thrift/lib/cpp2/op/CompareTest.cpp
third-party/thrift/src/thrift/lib/cpp2/op/detail/Get.h