================
@@ -363,16 +372,26 @@ src:bad/init/files/*=init
 ### Suppressing memory leaks
 
 Memory leak reports produced by {doc}`LeakSanitizer` (if it is run as a part
-of AddressSanitizer) can be suppressed by a separate file passed as
+of AddressSanitizer) can be suppressed at runtime by passing a suppression 
file:
 
 ```bash
 LSAN_OPTIONS=suppressions=MyLSan.supp
 ```
 
-which contains lines of the form `leak:<pattern>`. Memory leak will be
+or at compile time by defining the `__lsan_default_suppressions` function in 
your
+source code:
+
+```c++
+extern "C" const char *__lsan_default_suppressions() {
----------------
vitalybuka wrote:

#include <sanitizer/lsan_interface.h>

SImilar for asan,tsan



https://github.com/llvm/llvm-project/pull/218793
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to