================
@@ -70,6 +72,30 @@ class _LIBCPP_AVAILABILITY_TZDB time_zone {
     return __get_info(chrono::time_point_cast<seconds>(__time));
   }
 
+  // Since the interface promisses throwing, don't add nodiscard.
----------------
ldionne wrote:

I don't think this comment is necessary -- we assume no `nodiscard` by default 
anyway, and I think anyone pausing to think whether this should be made 
`nodiscard` will easily come to the same conclusion.

Or if you want to keep the comment, I would reword to `We don't apply nodiscard 
here since this function throws on many inputs, so it could be used as a 
validation`.

https://github.com/llvm/llvm-project/pull/90394
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to