[libcxx-commits] [libcxx] [ASan][libc++] Turn on ASan annotations for short strings (PR #75882)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 16 14:31:52 PST 2024


================
@@ -0,0 +1,183 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// REQUIRES: asan
+// UNSUPPORTED: c++03
+
+#include <cassert>
+#include <array>
+#include "test_macros.h"
+#include "asan_testing.h" // includes deque and string - don't do it before
----------------
AdvenamTacet wrote:

Yes, this comment is outdated and I'm removing it. It also actually does not appear in other tests. But `asan_testing.h` deserves a small refactor, which I'm planning to do soon.

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


More information about the libcxx-commits mailing list