Skip to content

Commit

Permalink
Fix const_util and ast_generator in xplat
Browse files Browse the repository at this point in the history
Reviewed By: yoney

Differential Revision: D61924120

fbshipit-source-id: 5e8dd132307c2c9a572b8b105db924a36c223bf1
  • Loading branch information
vitaut authored and facebook-github-bot committed Aug 28, 2024
1 parent ed806cf commit 94e8a68
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ folly::void_t<decltype(std::declval<T>().toThrift())> hydrate_const(
T& out, const t_const_value& val) {
hydrate_const(out.toThrift(), val);
}
void hydrate_const(protocol::Value& out, const t_const_value& val) {
inline void hydrate_const(protocol::Value& out, const t_const_value& val) {
typename protocol::Value::__fbthrift_cpp2_type inner;
hydrate_const(inner, val);
out = protocol::Value(std::move(inner));
}
void hydrate_const(protocol::Object& out, const t_const_value& val) {
inline void hydrate_const(protocol::Object& out, const t_const_value& val) {
typename protocol::Object::__fbthrift_cpp2_type inner;
hydrate_const(inner, val);
out = protocol::Object(std::move(inner));
Expand Down
2 changes: 1 addition & 1 deletion thrift/compiler/generate/t_ast_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
#include <thrift/compiler/ast/t_include.h>
#include <thrift/compiler/ast/t_type.h>
#include <thrift/compiler/detail/pluggable_functions.h>
#include <thrift/compiler/generate/const_util.h>
#include <thrift/compiler/generate/t_generator.h>
#include <thrift/compiler/lib/const_util.h>
#include <thrift/compiler/lib/schematizer.h>

#include <folly/compression/Compression.h>
Expand Down
2 changes: 1 addition & 1 deletion thrift/compiler/test/const_util_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

#include <thrift/compiler/lib/const_util.h>
#include <thrift/compiler/generate/const_util.h>

#include <folly/portability/GTest.h>
#include <thrift/compiler/test/gen-cpp2/const_util_test_types.h>
Expand Down

0 comments on commit 94e8a68

Please sign in to comment.