[PATCH] D28716: [libc++] Diagnose null inputs in std::string using _LIBCPP_DIAGNOSE_WARNING

Eric Fiselier via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 13 17:29:20 PST 2017

EricWF created this revision.
EricWF added a reviewer: mclow.lists.
EricWF added a subscriber: cfe-commits.

This patch uses `diagnose_if` to attempt to catch null inputs in `std::string`. Note that unlike `__attribute__((non_null))` `diagnose_if` does not affect codegen.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28716.84410.patch
Type: text/x-patch
Size: 23600 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170114/13554b27/attachment-0001.bin>

More information about the cfe-commits mailing list