carlosgalvezp wrote: ```cpp auto sub2 = s.subspan(n); // transforms to: auto sub2 = s.last(s.size() - n); ```
IMHO the transformed code is less readable. It would be more useful to do the opposite transformation, maybe that's what you intended? ```cpp auto sub2 = s.subspan(s.size() - n); // transforms to: auto sub2 = s.last(n); ``` https://github.com/llvm/llvm-project/pull/118074 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits