project-chip/connectedhomeip

Support "specification name" across more items within the SDK

Open

#38.891 geöffnet am 12. Mai 2025

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)C++ (1.659 Forks)batch import
good first issuestale

Repository-Metriken

Stars
 (6.410 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 8T 5h) (375 gemergte PRs in 30 T)

Beschreibung

The ZAP templates vary usage of asUpperCamelCase and asUpperCamelCase preserveAcronyms=true and code generation is inconsistent for acronym handling (e.g. C++ and darwin differ).

When preserveAcronyms makes a difference, we should preserve the XML name (with spaces and special characters and all) so that code generation can make a decision on how to encode things.

https://github.com/project-chip/connectedhomeip/pull/38888 adds support for constant names. We should go beyond that:

  • determine a good syntax throughout (for enums/bitmaps/struct/command names, structure member names, cluster names)
  • apply this syntax to update clusters. It is likely constants are the main ones affected though. May need to manually validate (e.g. using the Unit testing cluster)

Contributor Guide