[PATCH] D63616: Implement `-fsanitize-coverage-whitelist` and `-fsanitize-coverage-blacklist` for clang

Vitaly Buka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 7 02:08:13 PDT 2020


vitalybuka added inline comments.


================
Comment at: clang/lib/CodeGen/BackendUtil.cpp:218
   Opts.StackDepth = CGOpts.SanitizeCoverageStackDepth;
-  PM.add(createSanitizerCoverageModulePass(Opts));
+  PM.add(createSanitizerCoverageModulePass(Opts, CGOpts.SanitizeCoverageWhitelistFiles, CGOpts.SanitizeCoverageBlacklistFiles));
 }
----------------
morehouse wrote:
> Please run `clang-format --style=LLVM` on the patch.
it should be -style=file
"arc diff" should also invoke clang-format, check utils/arcanist/clang-format.sh


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63616/new/

https://reviews.llvm.org/D63616





More information about the cfe-commits mailing list