This is going to be necessary to implement some range adaptors.
As a fly-by fix, rename _LIBCPP_INLINE_VISIBILITY to _LIBCPP_HIDE_FROM_ABI
and remove a redundant inline keyword.
Details
- Reviewers
Mordante • Quuxplusone - Group Reviewers
Restricted Project - Commits
- rG2999b7307f70: [libc++] Make __decay_copy constexpr
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM!
libcxx/include/__utility/decay_copy.h | ||
---|---|---|
27 | Just FYI this is due to clang-tidy still being used in C++03 mode. We can change the clang-tidy language standard after switching to clang-tidy-13. (I expect make a patch for it real soon.) |
libcxx/include/__utility/decay_copy.h | ||
---|---|---|
27 | Thanks for the context. I'd definitely be in favor of that change. :) |
libcxx/include/__utility/decay_copy.h | ||
---|---|---|
27 | Is clang-tidy even run on libc++ CI? It's mentioned in libcxx/TODO.TXT to run clang-tidy on libc++. I notice that most llvm projects have their own .clang-tidy file, but libc++ does not. |
libcxx/include/__utility/decay_copy.h | ||
---|---|---|
27 | Typo for clang-format, I assume. :) +1 for cuddling >>. |
libcxx/include/__utility/decay_copy.h | ||
---|---|---|
27 | Note to self, don't read about clang-tidy while writing about clang-format ;-) |
Thanks for the reviews everyone, I'll ship with the applied comments.
libcxx/include/__utility/decay_copy.h | ||
---|---|---|
25 | Yes! |
I'm assuming this is used in C++11 code (thread and future) which is why we spell typename decay<_Tp>::type instead of decay_t<_Tp>?