Skip to content
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

llvm-cov show: -include-filename-regex counterpart for -ignore-filename-regex flag #71628

Open
Viranchee opened this issue Nov 8, 2023 · 1 comment
Labels
enhancement Improving things as opposed to bug fixing, e.g. new or missing feature tools:llvm-cov

Comments

@Viranchee
Copy link

Viranchee commented Nov 8, 2023

Hi,
I am having a use case where I want to show code coverage for only a certain files of the program.
By far, my solution regex has been hacky:

To include only folders that start with SIL:

llvm-cov show ...
  -ignore-filename-regex [A-RT-Z].* # includes only files starting with S
  -ignore-filename-regex S[A-HJ-Z].* # includes files starting with SI
  -ignore-filename-regex SI[A-KM-Z].* # includes files starting with SIL

If there is a counterpart flag for this, it would be wonderful

llvm-cov show ...
  -include-filename-regex SIL.* # includes only files starting with SIL

I am willing to contribute to this as well.
This can be a good first issue. This is code for -ignore-filename-regex
CodeCoverage.cpp

@dtcxzyw dtcxzyw added enhancement Improving things as opposed to bug fixing, e.g. new or missing feature tools:llvm-cov and removed new issue labels Nov 8, 2023
@Viranchee
Copy link
Author

#71716

I have added some code which allows for using argument: -ignore-filename-regex but haven't yet tested it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving things as opposed to bug fixing, e.g. new or missing feature tools:llvm-cov
Projects
None yet
Development

No branches or pull requests

2 participants