[Bug 576916] For dataclasses passed in messages the C action code content assist proposes dot access operator instead of arrow operator
Bugzilla Link | 576916 |
Status | NEW |
Importance | P3 normal |
Reported | Oct 27, 2021 07:39 EDT |
Modified | Oct 27, 2021 07:39 EDT |
Description
If a message with DataClass as payload triggers a transition then a pointer to the dataclass will be passed as transitionData.
The c content assist does however suggest to use the dot (.) operator to access the DataClasses attributes. This leads to uncompilable code.
If the user uses the arrow (->) operator the content assist does not suggest the attributes.
Idealy we would have the same behavor the CDT offers:
If you try to access a struct memeber from a pounter using the dot (.) operator the cdt will replace it with the arrow (->) operator before displaying suggestions.