[libcxx-commits] [PATCH] D131498: [libc++][NFC] Rename the constexpr macros

Joe Loser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Aug 12 06:04:34 PDT 2022


jloser added inline comments.


================
Comment at: libcxx/include/__config:835
 #  if _LIBCPP_STD_VER > 11
-#    define _LIBCPP_CONSTEXPR_AFTER_CXX11 constexpr
+#    define _LIBCPP_CONSTEXPR_CXX14 constexpr
 #  else
----------------
huixie90 wrote:
> I am ok with the name in your patch. But have you considered
> `_LIBCPP_CONSTEXPR_SINCE_CXX14`
> The reason why I like this name is because in the synopsis it is exact these words "// constexpr since C++14"
I quite like the naming convention of using "since", e.g. `_LIBCPP_CONSTEXPR_SINCE_CXX14` as you proposed, @huixie90. I'm also not opposed to @philnik current proposed rename as I do like it better than the status quo on top of tree.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131498/new/

https://reviews.llvm.org/D131498



More information about the libcxx-commits mailing list