[libcxx-commits] [libcxx] [libc++] Honor __SANITIZER_DISABLE_CONTAINER_OVERFLOW__ in libc++ (PR #168955)

Dan Blackwell via libcxx-commits libcxx-commits at lists.llvm.org
Fri Nov 21 01:22:12 PST 2025


DanBlackwell wrote:

This is neat, and solves the conflicting definition issue that could occur if someone did this (and we didn't guard out the forward declarations):
```
#define __SANITIZER_DISABLE_CONTAINER_OVERFLOW__
#include <sanitizers/common_interface_defs.h>
#include <vector>
```

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


More information about the libcxx-commits mailing list