More level 2 conversion fixes

This commit is contained in:
kevstone 2024-02-19 20:33:39 +00:00
parent 0c9770c061
commit 9e89efabc6
2 changed files with 9 additions and 0 deletions

View File

@ -266,3 +266,11 @@ class GribAccessorConversionValidation(default_conversion_validation.DefaultConv
return updated_cppmacro_instantiation
return super().validate_macro_instantiation(cmacro_instantiation, cppmacro_instantiation)
def is_cppfunction_returning_container(self, cppfunc_object):
if "initData" in cppfunc_object.as_string():
debug.line("is_cppfunction_returning_container", f"Assuming initData returns the correct container: cppfunc_object=[{debug.as_debug_string(cppfunc_object)}]")
return True
return super().is_cppfunction_returning_container(cppfunc_object)

View File

@ -11,5 +11,6 @@ class GribAccessorTypeInfo(default_type_info.DefaultTypeInfo):
def cpp_container_types(self):
return super().cpp_container_types() + [
"AccessorName",
"AccessorDataBuffer",
]