curdeius added a comment. In https://reviews.llvm.org/D53372#1267728, @lebedev.ri wrote:
> I think it would be good to add some more explanation as to *why* that `else` > has to be kept. Do you mean add a comment in the code or just an explanation for the review? For the latter, e.g.: // unrelated types: struct type_a {}; struct type_b {}; auto f() { if constexpr(condition) { return type_a{}; } else { return type_b{}; } } In this case removing else will just provoke a compilation error. There may be some cases where you may remove else though. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53372 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits