[PATCH] D152650: [docs] Improve UndefinedBehaviorSanitizer.rst
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 12 12:55:59 PDT 2023
MaskRay added inline comments.
================
Comment at: clang/docs/UndefinedBehaviorSanitizer.rst:62
+ # -fno-sanitize=undefined nullifies the previous -fsanitize=undefined.
+ % clang -fsanitize=undefined -fno-sanitize=undefined -fsanitize=alignment a.c
+
----------------
vitalybuka wrote:
> I guess this is the good example of alignment
Thanks. This is a deliberate example to show that one can specify multiple `-fsanitize=` `-fno-sanitize=` and the driver will do some computation. I'll elaborate the comment.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152650/new/
https://reviews.llvm.org/D152650
More information about the cfe-commits
mailing list