Skip to content

Commit 1be935f

Browse files
committed
[libc++] Remove visibility-related warnings with Clang 8
The attributes were placed incorrectly -- they need to be after the "struct" keyword, not before. llvm-svn: 355006
1 parent 6cdf3d8 commit 1be935f

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

libcxx/include/__node_handle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,7 @@ using __map_node_handle =
193193
__basic_node_handle< _NodeType, _Alloc, __map_node_handle_specifics>;
194194

195195
template <class _Iterator, class _NodeType>
196-
_LIBCPP_TEMPLATE_VIS
197-
struct __insert_return_type
196+
struct _LIBCPP_TEMPLATE_VIS __insert_return_type
198197
{
199198
_Iterator position;
200199
bool inserted;

libcxx/include/experimental/functional

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ _LIBCPP_BEGIN_NAMESPACE_LFTS
109109
#if _LIBCPP_STD_VER > 11
110110
// default searcher
111111
template<class _ForwardIterator, class _BinaryPredicate = equal_to<>>
112-
_LIBCPP_TYPE_VIS
113-
class default_searcher {
112+
class _LIBCPP_TYPE_VIS default_searcher {
114113
public:
115114
_LIBCPP_INLINE_VISIBILITY
116115
default_searcher(_ForwardIterator __f, _ForwardIterator __l,
@@ -208,8 +207,7 @@ public:
208207
template <class _RandomAccessIterator1,
209208
class _Hash = hash<typename iterator_traits<_RandomAccessIterator1>::value_type>,
210209
class _BinaryPredicate = equal_to<>>
211-
_LIBCPP_TYPE_VIS
212-
class boyer_moore_searcher {
210+
class _LIBCPP_TYPE_VIS boyer_moore_searcher {
213211
private:
214212
typedef typename std::iterator_traits<_RandomAccessIterator1>::difference_type difference_type;
215213
typedef typename std::iterator_traits<_RandomAccessIterator1>::value_type value_type;
@@ -360,8 +358,7 @@ make_boyer_moore_searcher( _RandomAccessIterator __f, _RandomAccessIterator __l,
360358
template <class _RandomAccessIterator1,
361359
class _Hash = hash<typename iterator_traits<_RandomAccessIterator1>::value_type>,
362360
class _BinaryPredicate = equal_to<>>
363-
_LIBCPP_TYPE_VIS
364-
class boyer_moore_horspool_searcher {
361+
class _LIBCPP_TYPE_VIS boyer_moore_horspool_searcher {
365362
private:
366363
typedef typename std::iterator_traits<_RandomAccessIterator1>::difference_type difference_type;
367364
typedef typename std::iterator_traits<_RandomAccessIterator1>::value_type value_type;

0 commit comments

Comments
 (0)