[PATCH] D102772: [SanitizeCoverage] Add support for NoSanitizeCoverage function attribute
Aaron Ballman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 19 07:07:15 PDT 2021
aaron.ballman added inline comments.
================
Comment at: clang/docs/SanitizerCoverage.rst:319
+It is possible to disable coverage instrumentation for select functions via the
+function attribute ``__attribute__((no_sanitize("coverage")))``.
+
----------------
I would expect to see this documentation also in AttrDocs.td within the `NoSanitizeDocs`.
================
Comment at: clang/include/clang/Basic/Attr.td:2902-2906
+ for (auto SanitizerName : sanitizers()) {
+ if (SanitizerName == "coverage")
+ return true;
+ }
+ return false;
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102772/new/
https://reviews.llvm.org/D102772
More information about the llvm-commits
mailing list