[cfe-commits] [PATCH] Clang support for sanitizer blacklists.
Richard Smith
richard at metafoo.co.uk
Mon Dec 3 13:55:26 PST 2012
================
Comment at: test/Driver/fsanitize-blacklist.c:2-3
@@ +1,4 @@
+// General blacklist usage.
+// RUN: %clang -fsanitize=address -fsanitize-blacklist=%s %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-BLACKLIST
+// CHECK-BLACKLIST: -fsanitize-blacklist
+
----------------
Alexey Samsonov wrote:
> Richard Smith wrote:
> > It'd be good to have a simple test that the flag is being correctly passed to the ASan pass (maybe just CHECK-NOT: asan in the generated IR?)
> Do you mean creating a test together with minimalistic blacklist and checking that IR for blacklisted functions doesn't have ASan instrumentation (in addition to ASan output tests)?
Yes, exactly that.
http://llvm-reviews.chandlerc.com/D152
More information about the cfe-commits
mailing list