rjmccall added a comment. Trust me, I understand that this is an important function, but a lot of functions are important, and we're not going to hardcode knowledge about all of them in the compiler.
It seems reasonable to ask libc++ to use `__attribute__((warn_unused_result))` if `[[nodiscard]]` is unavailable. Repository: rC Clang https://reviews.llvm.org/D45163 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits