As discussed in https://reviews.llvm.org/D52104
I'm going to land the same change in libcxxabi if this gets accepted.
Differential D52143
Make initializeOutputStream() return false on error and true on success. thakis on Sep 15 2018, 4:37 PM. Authored by
Details As discussed in https://reviews.llvm.org/D52104 I'm going to land the same change in libcxxabi if this gets accepted.
Diff Detail
Event TimelineComment Actions I'd like to know what the LLVM position is here before accepting a style patch like this. I can think of some VIPs (Very Important Procedures) that use either style, but my impression is that true on error is more common, which is why I wrote this function (and a bunch of other functions in the itanium demangler) like this. If you and @zturner feel strongly about this then I don't really mind either way. If you're interested in this issue then I think the right thing to do would be to get the LLVM community to standardize on one or the other. Comment Actions False on Error os more common and in fact there has been some effort in Comment Actions My two cents in, false on error makes more sense to me as it's not the same as integer return codes where 0 traditionally indicates success, it makes sense for a verb named function to return false on failure and true on success, or alternatively use a different way of reporting the status back. Comment Actions I've started a thread here: http://lists.llvm.org/pipermail/llvm-dev/2018-September/126178.html Unless there's strong disagreement there, I'm going to land this in a few days. |