<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63218>63218</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
UBSan Docs: `all` option for `-fsanitize-trap` seems supported but undocumented
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
seanm
</td>
</tr>
</table>
<pre>
GCC allows `-fsanitize-trap=all`, documented here:
https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html
Clang appears to accept it too:
```
% clang++ -fsanitize=undefined -fsanitize-trap=all test.cxx
% clang++ -fsanitize=undefined -fsanitize-trap=athoeu test.cxx
clang: error: unsupported argument 'athoeu' to option 'fsanitize-trap='
```
But it's not documented here:
https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykU82umzoQfhqzsYKMHSAsWIREXN1VF0fnAQwM4MrYyB6fnvbpK0PSVGk2VSU0BsN8fD8e6b2aDEBN8obk10QGnK2rPUizJJ0dvtf_XS5Uam2_eUoKdhi9NArVDzigkysRV6k1KRjhFzrYPixgEAY6gwMizoRdCbvVGXH1cY-3hLdT36eTCal1E-GtNVoZGGzv91eEt_8bj26Dk6isOXxZ4-LTGRf9O-xFSzNRua4gnadoqex7WJEqpGjtE4dIdL_2R57TPvYT3hDe0Ic4Iq7BDDBGVvSlZorgMe0_P_8VCmcL4QltRxJnCs5ZF2-C8WFdrYvmSjdtxlDCy72d8DJKt5tHcfuP3xBevrZgq02IhhFeemos_lWQG9VU64_lluUtxfe75gZm-aGse7sxcluEyVCLoRKVTKDOilMhBBPHPJlrnjHIK-BVNw5VlxdDlws4dfmwlYwnquaMC1awKitZfszTMiuAl2NfMSGKserIkcEilf5FKlHeB6gLwbNTomUH2t-Pu6vjR4cuTJ4cmVYe_aMNFWqo35s3aeg1qhLnOAL7gb-bPVr3ai4KRj3A4ukjti4gDebhbRKcrp-mQuEcurS3C-Ft5HFbDquzX6FHwttNSzR4k_MzAAD__6oRMu4">