niosus / EasyClangComplete

:boom: Robust C/C++ code completion for Sublime Text 3/4
https://niosus.github.io/EasyClangComplete/
MIT License
574 stars 79 forks source link

Various bugfixes to display mouse-hover mdpopups for macros & functions properly #768

Open LexouDuck opened 2 years ago

LexouDuck commented 2 years ago

Hello again ! And again, thank you for making this plugin, it has been of great use to me.

There were a couple of bugs with the mdpopup hover-doc feature (4 to be exact), so I have prepared 4 commits, which fix each of these. Here is an explanation for each one:

So, there were a couple of problems with how macros worked in the mouse-hover mdpopup display:

Also, there were some less important issues with how functions showed up in the mdpopup as well:

Let me know if you have any questions/remarks.

LexouDuck commented 2 years ago

Ah, it seems that the tests have failed for style/lint reasons, because some of my lines of code go beyond the 80th char column. Will fix this right away.

LexouDuck commented 2 years ago

There were also a handful of tests that needed updating, since mdpopups for functions now have a "Body" section as well. I have fixed this in commit 83f6b68ef647399cc523f33ea5d29c4b27348a1a

codecov[bot] commented 2 years ago

Codecov Report

Merging #768 (268c5c4) into master (3b16eb1) will decrease coverage by 1.36%. The diff coverage is 50.28%.

@@            Coverage Diff             @@
##           master     #768      +/-   ##
==========================================
- Coverage   82.16%   80.79%   -1.37%     
==========================================
  Files          39       39              
  Lines        3319     3458     +139     
==========================================
+ Hits         2727     2794      +67     
- Misses        592      664      +72     
Impacted Files Coverage Δ
plugin/completion/lib_complete.py 80.71% <0.00%> (-1.11%) :arrow_down:
plugin/settings/settings_storage.py 80.69% <ø> (ø)
plugin/utils/macro_parser.py 45.83% <21.95%> (-29.17%) :arrow_down:
plugin/error_vis/popups.py 80.49% <60.46%> (-9.45%) :arrow_down:
plugin/utils/thread_pool.py 96.77% <0.00%> (+3.12%) :arrow_up:
plugin/utils/progress_status.py 73.77% <0.00%> (+13.11%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c2e8913...268c5c4. Read the comment docs.