Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make DataModel::Provider return a Complete attribute metadata as its public interface #37519

Merged
merged 9 commits into from
Feb 12, 2025
Prev Previous commit
Next Next commit
Restyle
andy31415 committed Feb 12, 2025
commit f60a021d3453f071f2e267732ebd582f209fa15c
Original file line number Diff line number Diff line change
@@ -274,8 +274,7 @@ CHIP_ERROR CodegenDataModelProvider::Attributes(const ConcreteClusterPath & path
//
// We have Attributes from ember + global attributes that are NOT in ember metadata.
// We have to report them all
constexpr size_t kGlobalAttributeNotInMetadataCount =
ArraySize(GlobalAttributesNotInMetadata);
constexpr size_t kGlobalAttributeNotInMetadataCount = ArraySize(GlobalAttributesNotInMetadata);

ReturnErrorOnFailure(builder.EnsureAppendCapacity(cluster->attributeCount + kGlobalAttributeNotInMetadataCount));