[PATCH] D52034: [Clang] Add options -Xclang -coverage-filter and -Xclang -coverage-exclude to filter the files to instrument with gcov

calixte via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 13 13:38:14 PDT 2018


calixte added inline comments.


================
Comment at: include/clang/Driver/CC1Options.td:236
+def coverage_exclude_EQ : Joined<["-"], "coverage-exclude=">,
+  Alias<coverage_exclude>;
 def coverage_exit_block_before_body : Flag<["-"], "coverage-exit-block-before-body">,
----------------
vsk wrote:
> Have you checked whether gcc supports similar options? If so, it would be great if we could match their name & behavior.
The only one I found -finstrument-functions-exclude-file-list (https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html).
But no regex and no way to include one file only.
I took the names from gcovr: https://manpages.debian.org/jessie/gcovr/gcovr.1.en.html


Repository:
  rC Clang

https://reviews.llvm.org/D52034





More information about the cfe-commits mailing list