[libc++] Diagnose when nullptrs are passed to string APIs (#122790)

This allows catching misuses of APIs that take a pointer to a
null-terminated string.
This commit is contained in:
Nikolas Klauser
2025-02-27 22:57:19 +01:00
committed by GitHub
parent 28851edf16
commit f896bd3670
5 changed files with 72 additions and 17 deletions

View File

@@ -25,6 +25,7 @@ function(cxx_add_warning_flags target enable_werror enable_pedantic)
-Wformat-nonliteral
-Wzero-length-array
-Wdeprecated-redundant-constexpr-static-def
-Wno-nullability-completeness
)
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")