taiki-e / cargo-llvm-cov

Cargo subcommand to easily use LLVM source-based code coverage (-C instrument-coverage).
Apache License 2.0
858 stars 57 forks source link

Ignore function signatures in code coverage report, while not ignore function bodies? #328

Closed fzyzcjy closed 6 months ago

fzyzcjy commented 6 months ago

Given https://github.com/taiki-e/cargo-llvm-cov/issues/327, one work around may be, if we can somehow ignore the function signatures, while keeping the function bodies un-ignored. However, I am not sure whether this is possible currently.

For implementation, one naive way may be:

taiki-e commented 6 months ago

I prefer to fix the bug itself rather than add an odd workaround to avoid the odd bug.

fzyzcjy commented 6 months ago

Totally agree!

Btw I already add workarounds in https://github.com/fzyzcjy/flutter_rust_bridge ...