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

Vedant Kumar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 20 16:34:25 PDT 2018


vsk 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">,
----------------
marco-c wrote:
> 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.
+ 1, I think it's a great idea to loop in some gcc developers.


Repository:
  rC Clang

https://reviews.llvm.org/D52034





More information about the cfe-commits mailing list