-
Notifications
You must be signed in to change notification settings - Fork 0
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
New idl for testing setting the MemberId [20109] #17
Conversation
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
IDL/member_id.idl
Outdated
@id(100) | ||
octet o; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally, I think it is easier to read if the annotation and the type are in the same line as it is usually written in the specifications. Otherwise, it might be helpful to include a blank line between types. Though this is only a style suggestion and as there is no IDL code style, it can be overlooked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 65376cd
IDL/member_id.idl
Outdated
@autoid(HASH) | ||
struct DerivedAutoidHash : AutoidHash | ||
{ | ||
char cd; | ||
@id(101) | ||
octet od; | ||
@hashid | ||
short sd; | ||
@hashid("long2") | ||
long ld; | ||
long long lld; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a specific inheritance test case that it would be nice to test as well. What happens if there is nested inheritance as the following IDL:
struct SomeStruct
{
short some_var;
};
struct EmptyStruct : SomeStruct
{
};
struct AnotherInheritedStruct : EmptyStruct
{
long another_var;
};
Probably the logic in IDL Parser would handle this case correctly, but I suggest having the test case to ensure that in the future is not broken.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 65376cd
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.