smeenai added a comment.

In https://reviews.llvm.org/D27430#632652, @EricWF wrote:

> Please put these attributes to the first declaration instead of the 
> definition.


Sounds good to me for `_LIBCPP_HIDDEN`, but as far as I understand, for the 
`inline _LIBCPP_INLINE_VISIBILITY` cases, at least the `inline` needs to be at 
the definition itself, otherwise it won't have any effect. For those, do you 
want to keep the `_LIBCPP_INLINE_VISIBILITY` at the declaration and the 
`inline` at the definition?



================
Comment at: include/thread:392
 template <class _Fp>
+_LIBCPP_HIDDEN
 thread::thread(_Fp __f)
----------------
EricWF wrote:
> We really should hide this using `inline _LIBCPP_INLINE_VISIBILITY` because 
> it's a special C++03 symbol, so we don't even want a hidden definition 
> omitted ideally.
Will do.


https://reviews.llvm.org/D27430



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to