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

Marco Castelluccio via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 20 02:07:01 PDT 2018


marco-c 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">,
----------------
calixte wrote:
> 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
We could file a bug in GCC's Bugzilla and agree with them about the options.


Repository:
  rC Clang

https://reviews.llvm.org/D52034





More information about the cfe-commits mailing list