Skip to content

Commit

Permalink
Put back auto-generated comments for MTRBaseClusters. (#23846)
Browse files Browse the repository at this point in the history
The changeset that added these initially was reverted, then when
re-landing this part of the change was removed to make review easier.

The changes are all comment-only.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Feb 13, 2024
1 parent 2365c66 commit 4072871
Show file tree
Hide file tree
Showing 2 changed files with 1,137 additions and 75 deletions.
8 changes: 7 additions & 1 deletion src/darwin/Framework/CHIP/templates/MTRBaseClusters.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ NS_ASSUME_NONNULL_BEGIN

/**
* Cluster {{name}}
* {{description}}
*
* {{description}}
*/
{{#unless (isStrEqual (asUpperCamelCase name preserveAcronyms=true) (compatClusterNameRemapping name))}}
MTR_NEWLY_AVAILABLE
Expand All @@ -26,6 +27,11 @@ MTR_NEWLY_AVAILABLE
queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_NEWLY_AVAILABLE;

{{#chip_cluster_commands}}
/**
* Command {{name}}
*
* {{description}}
*/
{{#*inline "cluster"}}{{asUpperCamelCase parent.name preserveAcronyms=true}}{{/inline~}}
{{~#*inline "command"}}{{asUpperCamelCase name preserveAcronyms=true}}{{/inline~}}
- (void){{asLowerCamelCase name}}WithParams:(MTR{{>cluster}}Cluster{{>command}}Params * {{#unless (commandHasRequiredField .)}}_Nullable{{/unless}})params completion:({{>command_completion_type command=.}})completion MTR_NEWLY_AVAILABLE;
Expand Down
Loading

0 comments on commit 4072871

Please sign in to comment.