Add --gen-absl-hash option to generate AbslHashValue for structs. (#8868)

This commit is contained in:
Derek Bailey
2025-12-19 11:49:50 -08:00
committed by GitHub
parent fb55e0c9de
commit 8cb53ccc95
15 changed files with 186 additions and 3 deletions

View File

@@ -664,6 +664,7 @@ struct IDLOptions {
bool generate_name_strings;
bool generate_object_based_api;
bool gen_compare;
bool gen_absl_hash;
std::string cpp_object_api_pointer_type;
std::string cpp_object_api_string_type;
bool cpp_object_api_string_flexible_constructor;
@@ -818,6 +819,7 @@ struct IDLOptions {
generate_name_strings(false),
generate_object_based_api(false),
gen_compare(false),
gen_absl_hash(false),
cpp_object_api_pointer_type("std::unique_ptr"),
cpp_object_api_string_flexible_constructor(false),
cpp_object_api_field_case_style(CaseStyle_Unchanged),