-
Notifications
You must be signed in to change notification settings - Fork 102
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
Incorrectly handled foreach style loops #509
Comments
The problem only occurs, when clicking in a for cycle. If clicking on the same parameter somewhere else, it works perfectly. |
This is still a bit weird. If the foreach is not in a lambda (#583) then right now then examples from CodeCompass itself work for me (Firefox, Ubuntu): However, clicking on the iterable of the foreach, now that is definitely broken: The PCL source code's parsing status broke since the creation of the ticket. |
@whisperity Fixed it, the dependencies changed a little bit. The corresponding lines are 94 and 98 now. |
Tried to reproduce the issue on a smaller project. |
Hi! I found in clang's AstVisitor functions named TraverseForStmt and TraverseCXXForRangeStmt:
I think we will need the second one for the foreach cycle, maybe. |
It seems CodeCompass handles foreach style
for
loops incorrectly when clicking on the enumerated variable.How to reproduce:
centroids_
in line 97. or oncentroid
in line 101. In the InfoTree, the complete functions is shown, and the goto definition feature also work in correctly.https://codecompass.net/demo/#wsid=PCL&fid=16855117887643076224&select=97|1|98|1¢er=text
_ctx.fileStatus
in line 358. to get the very same issue:https://codecompass.net/demo/#wsid=CodeCompass&fid=3022161984525021070&select=358|1|359|1¢er=text
The text was updated successfully, but these errors were encountered: