You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make attributes whose values are lists of structs that have nullables/optionals at least compile. (#11105)
This doesn't give us correct behavior across all of our bindings
(chip-tool command line, yaml, darwin, python, java). But it at least
allows code generation to produce output and allows that output to
compile.
More work is needed to address the various TODO issues.
, "({{#chip_attribute_list_entryTypes}}{{#if isOptional}}{{! TODO: Add support for optional types here }}{{else if isNullable}}{{! TODO: Add support for nullable types here }}{{else if isArray}}{{! TODO: Add support for lists here }}{{else if isStruct}}{{! TODO: Add support for structs here }}{{else if (isString type)}}{{#if (isOctetString type)}}[B{{else}}Ljava/lang/String;{{/if}}{{else}}{{asJniSignature type}}{{/if}}{{/chip_attribute_list_entryTypes}})V");
452
452
VerifyOrReturn(attributeCtor != nullptr, ChipLogError(Zcl, "Could not find {{asUpperCamelCase name}}Attribute constructor"));
453
453
{{/if}}
454
454
@@ -457,8 +457,17 @@ class CHIP{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}AttributeCall
457
457
{
458
458
auto & entry = iter.GetValue();
459
459
{{#if isStruct}}
460
+
(void)entry; {{! In case all our struct members are not supported yet }}
0 commit comments