This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGee0367ef13f8: [docs] Improve UndefinedBehaviorSanitizer.rst
(authored by MaskRay).
Changed prior to commit:
https://reviews.llvm.org/D152650?vs=53
MaskRay updated this revision to Diff 530645.
MaskRay marked an inline comment as done.
MaskRay edited the summary of this revision.
MaskRay added a comment.
better -fsanitize=... -fno-sanitize example
Add "If the signal is not caught, the program will typically terminate due to a
``SIGILL`` or `
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:
vitalybuka accepted this revision.
vitalybuka added inline comments.
This revision is now accepted and ready to land.
Comment at: clang/docs/UndefinedBehaviorSanitizer.rst:62
+ # -fno-sanitize=undefined nullifies the previous -fsanitize=undefined.
+ % clang -fsanitize=undefined
MaskRay created this revision.
MaskRay added reviewers: Sanitizers, vitalybuka.
Herald added a project: All.
MaskRay requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
- Mention that -fsanitize= and -fno-sanitize= apply to check groups.
- Ment