Skip to content

main: various minor improvements, especially about mio #4214

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

Merged
merged 8 commits into from
Mar 20, 2025

Conversation

masatake
Copy link
Member

This is a preparation for #4212.

Signed-off-by: Masatake YAMATO <[email protected]>
The original code returned a dummy MIOPos made with
memset(&pos, 0, sizeof (pos)) if the lineFposMap is not ready.
The dummy MIOPos doesn't work if MIO_DEBUG is enabled.

Signed-off-by: Masatake YAMATO <[email protected]>
…rind

In makePatternStringCommon, we compare memory patterns of MIOPos
objects in an abusive way. As the result, uninitialized union
members and holes in MIOPos are accessed. Valgrind detects the accesses
and reports errors.

Signed-off-by: Masatake YAMATO <[email protected]>
Copy link

codecov bot commented Mar 20, 2025

Codecov Report

Attention: Patch coverage is 77.77778% with 2 lines in your changes missing coverage. Please review.

Project coverage is 85.84%. Comparing base (6c9aefc) to head (0dc3a8a).
Report is 9 commits behind head on master.

Files with missing lines Patch % Lines
main/entry.c 0.00% 1 Missing ⚠️
main/mio.c 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4214   +/-   ##
=======================================
  Coverage   85.84%   85.84%           
=======================================
  Files         241      241           
  Lines       62525    62535   +10     
=======================================
+ Hits        53675    53684    +9     
- Misses       8850     8851    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@masatake masatake merged commit b31c584 into universal-ctags:master Mar 20, 2025
85 of 87 checks passed
@masatake
Copy link
Member Author

781da3f triggers many bugs.

I will revert it.

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.

1 participant