[libcxx-commits] [PATCH] D121604: [libc++][NFC] Remove several redundant #if _LIBCPP_STD_VER > 17 in <span>
Joe Loser via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Mar 14 10:42:10 PDT 2022
jloser added inline comments.
================
Comment at: libcxx/include/span:255
}
-#endif // _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_INCOMPLETE_RANGES)
+#endif
----------------
philnik wrote:
> ldionne wrote:
> > philnik wrote:
> > > Why have you removed the comment completely? (Also in line 437)
> > When blocks are really small, the readability improvement of commenting the `#endif` is questionable.
> >
> > Do you agree @jloser @philnik ? If not, I don't mind adding them back.
> I think I'd like to keep them. In some situations it drastically increases readability and definitely doesn't hurt even with these small blocks.
I'm fine omitting them for small blocks. For larger blocks, I like having them.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121604/new/
https://reviews.llvm.org/D121604
More information about the libcxx-commits
mailing list