[libcxx-commits] [libcxx] [ASan][libc++] Update string ASan annotations to Zero-overhead (PR #76165)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 21 12:20:53 PST 2023


================
@@ -1490,6 +1490,16 @@ __sanitizer_verify_double_ended_contiguous_container(const void*, const void*, c
 #    define _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK
 #  endif
 
+// ASan related macros
+// _LIBCPP_IF_ASAN is used to removed ASan related code, whenever compiled without ASan.
----------------
AdvenamTacet wrote:

I don't have an opinion about file, but so long name makes it less readable and I'm not a fan of it. But if we keep it inside string file, I understand that may be the best case, so I just did that, just pointing it out.

https://github.com/llvm/llvm-project/pull/76165


More information about the libcxx-commits mailing list