Skip to content
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

Fix the ability to recognize return types when simplifying attributes. #3637

Merged
merged 4 commits into from
Dec 22, 2021
Merged

Fix the ability to recognize return types when simplifying attributes. #3637

merged 4 commits into from
Dec 22, 2021

Conversation

clalancette
Copy link
Contributor

When parsing attributes to remove them, we have to allow for
the case where the return type of the function that follows
the attribute has a namespaced C++ type, like foo::bar .
That means that :: has to be recognized as a valid token.
Fix this in simplifyAttribute, and add tests for this as well.

Signed-off-by: Chris Lalancette clalancette@openrobotics.org

When parsing attributes to remove them, we have to allow for
the case where the return type of the function that follows
the attribute has a namespaced C++ type, like foo::bar .
That means that :: has to be recognized as a valid token.
Fix this in simplifyAttribute, and add tests for this as well.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
lib/tokenize.cpp Outdated Show resolved Hide resolved
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
lib/tokenize.cpp Outdated Show resolved Hide resolved
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@danmar danmar merged commit df1d6cf into danmar:main Dec 22, 2021
@danmar
Copy link
Owner

danmar commented Dec 22, 2021

Thanks!

@clalancette clalancette deleted the clalancette/fix-attribute-return branch December 22, 2021 20:21
@clalancette
Copy link
Contributor Author

Thanks for merging!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants