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

Cxx: scan the cork queue instead of the symtab to fill nth fields #3642

Merged
merged 2 commits into from
Mar 20, 2023

Conversation

masatake
Copy link
Member

@masatake masatake commented Feb 7, 2023

Close #3634.

If an enum has so many enumerators, the original code, counting enumerators
for filling nth fields, takes a too long time.

The new code looks up the last enumerator and calculates a new nth value
by incrementing the last nth value.

@codecov
Copy link

codecov bot commented Feb 7, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.02 ⚠️

Comparison is base (6e720ab) 82.83% compared to head (0a96308) 82.81%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3642      +/-   ##
==========================================
- Coverage   82.83%   82.81%   -0.02%     
==========================================
  Files         223      223              
  Lines       54518    54525       +7     
==========================================
- Hits        45159    45155       -4     
- Misses       9359     9370      +11     
Impacted Files Coverage Δ
parsers/cxx/cxx_tag.c 88.85% <100.00%> (+0.27%) ⬆️

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Close universal-ctags#3634.

If an enum has so many enumerators, the original code, counting enumerators
for filling nth fields, takes a too long time.

The new code looks up the last enumerator and calculates a new nth value
by incrementing the last nth value.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
@masatake masatake marked this pull request as ready for review March 20, 2023 14:55
@masatake masatake merged commit 8606b4b into universal-ctags:master Mar 20, 2023
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.

C/C++: Endless parse large file
1 participant