-
Notifications
You must be signed in to change notification settings - Fork 636
Verilog: Fix function parse when return type contains ::
#4111
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4111 +/- ##
=======================================
Coverage 85.85% 85.85%
=======================================
Files 239 239
Lines 58629 58652 +23
=======================================
+ Hits 50333 50356 +23
Misses 8296 8296 ☔ View full report in Codecov by Sentry. |
fc5125c
to
05c2091
Compare
05c2091
to
b3150db
Compare
Much easier to read! |
Aha! Thanks for your detailed review and guidance, it helped me a lot. 😄 |
Thanks a lot! |
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.
Thank you for your great fix.
You also fix the bug of currentContext->virtual
in dropContex()
.
I've added a note on your comment. Please fix it.
I still don't understand how getFirstClassNameIndex()
works well. I may be able to simply it some more, but not sure yet. Let me some more time to think about it.
At first, I just added as detailed a description and test cases as possible to submit an issue, hoping to help developers analyze the problem. Suddenly, I wanted to see how it was implemented. The clear implementation code structure makes it understandable to newbies, so I raised this PR and received detailed review and guidance. Thanks a lot!
This is mentioned in 6de290bc detailed commit messages.
In fact, we only add the class scope to the token before |
b3150db
to
d96a809
Compare
Comments and test cases were updated. |
d96a809
to
68ef8d6
Compare
Refer to PR #4116, the class now supports
In addition, the implementation of the |
Again thank you very much for your great work! |
Fixed #4109 ❤️ Many Thanks to the reviewers, you helped me a lot. Now let's close the associated issue. |
This is a fix for #4109, and this TODO list (#2674) now can be checked:
fixme
insystemverilog-task-function.d/inputs.sv
function void foo::bar();
function foo #(IF) bar();
We should ignore any return type of a
function
. We only need to parse theclass_scope
before thefunction
ortask
name.