From 906c872db9344ce483282938f83ee5d4a262f3e6 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Sat, 7 Nov 2015 01:22:13 +0000 Subject: Cleanup: move visibility/linkage attributes to the first declaration. This change moves visibility attributes from out-of-class method definitions to in-class declaration. This is needed for a switch to attribute((internal_linkage)) (see http://reviews.llvm.org/D13925) which can only appear on the first declaration. This change does not touch istream/ostream/streambuf. They are handled separately in http://reviews.llvm.org/D14409. llvm-svn: 252385 --- libcxx/include/regex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libcxx/include/regex') diff --git a/libcxx/include/regex b/libcxx/include/regex index b2b556e5bc4..b9dac4765cd 100644 --- a/libcxx/include/regex +++ b/libcxx/include/regex @@ -1048,6 +1048,7 @@ private: _LIBCPP_INLINE_VISIBILITY int __regex_traits_value(char __ch, int __radix) const {return __regex_traits_value(static_cast(__ch), __radix);} + _LIBCPP_INLINE_VISIBILITY int __regex_traits_value(wchar_t __ch, int __radix) const; }; @@ -1270,7 +1271,7 @@ regex_traits<_CharT>::__regex_traits_value(unsigned char __ch, int __radix) } template -inline _LIBCPP_INLINE_VISIBILITY +inline int regex_traits<_CharT>::__regex_traits_value(wchar_t __ch, int __radix) const { -- cgit v1.2.3