[libcxx-commits] [libcxx] [ASan][libc++] Update string ASan annotations to Zero-overhead (PR #76165)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Dec 21 10:12:36 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.
----------------
ldionne wrote:
Since this is not suuuuper clean, I would suggest keeping this inside `<string>` and name it something string-specific like `_LIBCPP_STRING_IF_ASAN`. Hopefully in the future we can just clean it up.
https://github.com/llvm/llvm-project/pull/76165
More information about the libcxx-commits
mailing list