-
Notifications
You must be signed in to change notification settings - Fork 362
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
Parsing error when two template closing delimiter are used together without separator ">>" #2318
Comments
Seems to be a problem in: related to #2291 |
Seems each < should initialize its own parentheseLevel variable. |
- https://github.com/SonarOpenCommunity/sonar-cxx/blob/master/cxx-squid/dox/Right_Angle_Brackets_N1757_05-0017.html - close SonarOpenCommunity#2318 Sample: ```C++ auto foo(A<int>* p) { auto a = f(std::shared_ptr<A<int>>(p)); } ```
Hi @slnj, thanks for your feedback. I have a fix for your issue, but I'm not sure if this is a fix for all cases. Please test it and give me feedback. The code implements: I always try to find a solution with minimal impact to avoid destroying other things. Regards, |
Hi @slnj, there is a new version for testing: Regards, |
Excellent!! Thanks & Regards |
@slnj Thx for your valuable input! |
Getting parsing error in this case:
FAILS:
But If change ">>" by "> >" ( adding one separator between ">" then parsing is ok )
OK:
Also if f() call is removed , ">>" without separator is accepted.
OK:
The text was updated successfully, but these errors were encountered: