Skip to content

Conversation

@andreasfertig
Copy link
Owner

This change introduces a TranslationUnit handler, replacing the previous matchers. The advantage is that all statements are processed, not only the ones where an exact match exists.

The new approach fixes #376, #500, and #588.

There is one disadvantage: for primary templates, some code is not reproduced as written. This causes one compile issue.

This change introduces a `TranslationUnit` handler, replacing the previous
matchers. The advantage is that _all_ statements are processed,  not only the
ones where an exact match exists.

The new approach fixes #376, #500, and #588.

There is one disadvantage: for primary templates, some code is not reproduced
as written. This causes one compile issue.
@codecov
Copy link

codecov bot commented Mar 11, 2024

Codecov Report

Attention: Patch coverage is 96.57534% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 98.03%. Comparing base (249f736) to head (c0f0420).

Files Patch % Lines
CfrontCodeGenerator.cpp 75.00% 2 Missing ⚠️
CodeGenerator.cpp 98.14% 1 Missing ⚠️
Insights.cpp 98.48% 1 Missing ⚠️
InsightsHelpers.cpp 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #615      +/-   ##
==========================================
+ Coverage   97.88%   98.03%   +0.14%     
==========================================
  Files          27       20       -7     
  Lines        5067     4880     -187     
==========================================
- Hits         4960     4784     -176     
+ Misses        107       96      -11     
Flag Coverage Δ
ubuntu 97.97% <96.57%> (+0.14%) ⬆️
ubuntu-libcxx 98.03% <96.57%> (+0.14%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@andreasfertig andreasfertig merged commit 8bba69e into main Mar 11, 2024
@andreasfertig andreasfertig deleted the translationUnitMatcher branch March 11, 2024 15:47
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.

Complex macros are not expanded

2 participants