[LLVMdev] ubsan suppression
Jonas Wagner
jonas.wagner at epfl.ch
Mon May 19 05:48:02 PDT 2014
Hi,
is there a way to suppress specific undefined sanitizer warnings, in
> particular for unsigned integer overflow? Either with a suppression file
> (similar to TSan) or even better with some in source annotation?
>
You can do so globally by selecting individual checks. Instead of
-fsanitize=undefined, you can use -fsanitize=alignment,bool,bounds,enum,...
(see the manual <http://clang.llvm.org/docs/UsersManual.html> for a list).
I'm not aware of a possibility to do this with blacklist files or at finer
granularity, though.
Best,
Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140519/7f9d8768/attachment.html>
More information about the llvm-dev
mailing list