Skip to content

Meson: extract config vars defined inside configuration_data({...}) #4275

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

masatake
Copy link
Member

@masatake masatake commented Jun 12, 2025

I should pull this request into two.

(
This random should be removed from here:

input : "\n" L3781
match :'\n'            main[ 0] / ^([a-zA-Z_][a-zA-Z_0-9]*)[ \t\n]*=([^=]|$)/
match :'\n'            main[ 1] / ^project[ \t\n]*\\([ \t\n]*'([^']*[^\\\\])'[ \t\n]*/
match :'\n'            main[ 2] / ^subdir[ \t\n]*\\([ \t\n]*'([^']*[^\\\\])'[ \t\n]*/
match :'\n'            main[ 3] / ^test[ \t\n]*\\([ \t\n]*'([^']*[^\\\\])'[ \t\n]*/
match :'\n'            main[ 4] / ^[ \t\n]+/

...                   TABLE[ N] ...
result: matched 1 bytes
scope : 
action: NOP in {main}, stack: /

It would be helpful for optimization if ctags could report per-TABLE statistics (average N, s.d. N, max N).
)

masatake added 2 commits June 12, 2025 19:35
  Before:
  $ ./ctags -o -  /home/yamato/backup/var/util-linux/util-linux-2.41.devel-232-07aac-dirty/meson.build > /dev/null 2> /tmp/logf
  0.46s user 0.01s system 97% cpu 0.483 total

  After:
  0.19s user 0.01s system 97% cpu 0.209 total

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

codecov bot commented Jun 12, 2025

Codecov Report

Attention: Patch coverage is 0% with 64 lines in your changes missing coverage. Please review.

Project coverage is 85.89%. Comparing base (4fcf455) to head (bcbc81d).
Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
optlib/meson.c 0.00% 64 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4275      +/-   ##
==========================================
- Coverage   85.96%   85.89%   -0.08%     
==========================================
  Files         246      246              
  Lines       63454    63517      +63     
==========================================
+ Hits        54546    54555       +9     
- Misses       8908     8962      +54     

☔ 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.

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