Mark throw_bad_alloc_helper() as [[noreturn]].
This avoids MSVC /analyze warnings about new returning null, since [[noreturn]] allows the analyzer to see what's happening.
Differential D21625
[libcxx] [test] Mark throw_bad_alloc_helper() as [[noreturn]]. STL_MSFT on Jun 22 2016, 3:21 PM. Authored by
Details
Mark throw_bad_alloc_helper() as [[noreturn]]. This avoids MSVC /analyze warnings about new returning null, since [[noreturn]] allows the analyzer to see what's happening.
Diff Detail Event TimelineComment Actions I don't think all the compilers libc++ tests with support [[noreturn]] yet. I'll commit a similar patch to this though. Comment Actions Accepting before closing. |