Bug 507697 - [codegen] support protocol message with a single parameter of type 'void'
Summary: [codegen] support protocol message with a single parameter of type 'void'
Status: NEW
Alias: None
Product: Papyrus-rt
Classification: Modeling
Component: codegen (show other bugs)
Version: 0.8.0   Edit
Hardware: All All
: P3 normal
Target Milestone: Future   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-17 11:43 EST by Ernesto Posse CLA
Modified: 2016-12-02 02:59 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ernesto Posse CLA 2016-11-17 11:43:58 EST
As discussed in Bug 479078, the user should be able to declare a protocol message with single parameter typed 'void' and the generated code should be the same as if it was declared with no parameters.
Comment 1 Simon Redding CLA 2016-12-01 15:55:49 EST
If a parameter type is set to void, but no pointer added, then this will generate code which fails to compile. I am moving to future as it is not clear fi we should treat this as "no parameter" or as a code gen/tool error.
Comment 2 Peter Cigehn CLA 2016-12-02 02:59:15 EST
(In reply to Simon Redding from comment #1)
> If a parameter type is set to void, but no pointer added, then this will
> generate code which fails to compile. I am moving to future as it is not
> clear fi we should treat this as "no parameter" or as a code gen/tool error.

No, it was probably not clear from the discussion in Bug 479078. But the conclusion is that, if we are to align with the legacy code generator, then the case with one single parameter typed by void should be treated the same as the case with no parameters (and generate the same code pattern which of course should compile). It should not be treated as an error.