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

Restore counting iterations in computeContainsDeclaration cycle detector #317

Conversation

i-garrison
Copy link
Contributor

@i-garrison i-garrison commented Mar 12, 2023

A follow-up change to bug 509898 missed actually incrementing the counter, restore it now.

Fixes: 5462bac ("Bug 509898 - IndexFileSet.containsDeclaration is slow and is causing UI freezes")

@i-garrison i-garrison force-pushed the pr/restore-counting-iterations-in-compute-contains-declaration branch from 2b840cb to df54384 Compare March 12, 2023 09:13
@i-garrison i-garrison changed the title Restore counting iterations in fomputeContainsDeclaration cycle detector Restore counting iterations in computeContainsDeclaration cycle detector Mar 12, 2023
@github-actions
Copy link

github-actions bot commented Mar 12, 2023

Test Results

     592 files       592 suites   14m 18s ⏱️
10 057 tests 10 035 ✔️ 22 💤 0
10 179 runs  10 157 ✔️ 22 💤 0

Results for commit f76fb34.

♻️ This comment has been updated with latest results.

@jonahgraham jonahgraham added this to the 11.2.0 milestone Mar 14, 2023
Copy link
Member

@jonahgraham jonahgraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch on this one. Did you encounter a case where this is making a difference, or did you hit this by code inspection?

A follow-up change to bug 509898 missed actually incrementing the counter,
restore it now.

Fixes: 5462bac ("Bug 509898 - IndexFileSet.containsDeclaration is slow and is causing UI freezes")
@jonahgraham
Copy link
Member

I have rebased the change to make sure that it builds cleanly on main now that we released 11.1.0. Normally this is just a check that code cleanliness still passes, especially bundle version numbers are where they are supposed to be.

@jonahgraham jonahgraham force-pushed the pr/restore-counting-iterations-in-compute-contains-declaration branch from df54384 to f76fb34 Compare March 16, 2023 14:40
@i-garrison
Copy link
Contributor Author

Good catch on this one. Did you encounter a case where this is making a difference, or did you hit this by code inspection?

It was by code inspection. I was looking at the issue where index lookup returns too many bindings for class declaration/definition which makes lookup ambiguous, but apparently some of those bindings are not reachable from current AST.

@jonahgraham jonahgraham added the language C/C++ Language Support label Mar 16, 2023
@jonahgraham jonahgraham merged commit 74621c1 into eclipse-cdt:main Mar 16, 2023
@i-garrison i-garrison deleted the pr/restore-counting-iterations-in-compute-contains-declaration branch March 16, 2023 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language C/C++ Language Support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants