Skip to content

Commit d2b0df3

Browse files
committed
[libc++][NFC] Update namespace comments in include/
update the namspace comments in include/ Reviewed By: ldionne, #libc Spies: smeenai, libcxx-commits Differential Revision: https://reviews.llvm.org/D114947
1 parent 93a2c29 commit d2b0df3

File tree

23 files changed

+34
-33
lines changed

23 files changed

+34
-33
lines changed

libcxx/include/__functional/bind.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ _LIBCPP_FUNC_VIS extern const __ph<10> _10;
7070
/* inline */ constexpr __ph<10> _10{};
7171
#endif // defined(_LIBCPP_CXX03_LANG) || defined(_LIBCPP_BUILDING_LIBRARY)
7272

73-
} // placeholders
73+
} // namespace placeholders
7474

7575
template<int _Np>
7676
struct __is_placeholder<placeholders::__ph<_Np> >

libcxx/include/__functional/function.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ class __func<_Rp1(^)(_ArgTypes1...), _Alloc, _Rp(_ArgTypes...)>
946946

947947
#endif // _LIBCPP_HAS_EXTENSION_BLOCKS && !_LIBCPP_HAS_OBJC_ARC
948948

949-
} // __function
949+
} // namespace __function
950950

951951
template<class _Rp, class ..._ArgTypes>
952952
class _LIBCPP_TEMPLATE_VIS function<_Rp(_ArgTypes...)>

libcxx/include/__nullptr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ _LIBCPP_END_NAMESPACE_STD
5454
namespace std
5555
{
5656
typedef decltype(nullptr) nullptr_t;
57-
}
57+
} // namespace std
5858

5959
#endif // _LIBCPP_HAS_NO_NULLPTR
6060

libcxx/include/__threading_support

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ inline __libcpp_timespec_t __convert_to_timespec(const chrono::nanoseconds& __ns
296296
return __ts;
297297
}
298298

299-
}
299+
} // namespace __thread_detail
300300

301301
#if defined(_LIBCPP_HAS_THREAD_API_PTHREAD)
302302

@@ -643,7 +643,7 @@ namespace this_thread
643643

644644
_LIBCPP_INLINE_VISIBILITY __thread_id get_id() _NOEXCEPT;
645645

646-
} // this_thread
646+
} // namespace this_thread
647647

648648
template<> struct hash<__thread_id>;
649649

@@ -713,7 +713,7 @@ get_id() _NOEXCEPT
713713
return __libcpp_thread_get_current_id();
714714
}
715715

716-
} // this_thread
716+
} // namespace this_thread
717717

718718
#endif // !_LIBCPP_HAS_NO_THREADS
719719

libcxx/include/__utility/rel_ops.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ operator>=(const _Tp& __x, const _Tp& __y)
5555
return !(__x < __y);
5656
}
5757

58-
} // rel_ops
58+
} // namespace rel_ops
5959

6060
_LIBCPP_END_NAMESPACE_STD
6161

libcxx/include/charconv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
105105
namespace __itoa {
106106
_LIBCPP_AVAILABILITY_TO_CHARS _LIBCPP_FUNC_VIS char* __u64toa(uint64_t __value, char* __buffer) _NOEXCEPT;
107107
_LIBCPP_AVAILABILITY_TO_CHARS _LIBCPP_FUNC_VIS char* __u32toa(uint32_t __value, char* __buffer) _NOEXCEPT;
108-
}
108+
} // namespace __itoa
109109

110110
#ifndef _LIBCPP_CXX03_LANG
111111

libcxx/include/chrono

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ struct __is_duration<volatile duration<_Rep, _Period> > : true_type {};
738738
template <class _Rep, class _Period>
739739
struct __is_duration<const volatile duration<_Rep, _Period> > : true_type {};
740740

741-
} // chrono
741+
} // namespace chrono
742742

743743
template <class _Rep1, class _Period1, class _Rep2, class _Period2>
744744
struct _LIBCPP_TEMPLATE_VIS common_type<chrono::duration<_Rep1, _Period1>,
@@ -1265,7 +1265,7 @@ public:
12651265
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR time_point max() _NOEXCEPT {return time_point(duration::max());}
12661266
};
12671267

1268-
} // chrono
1268+
} // namespace chrono
12691269

12701270
template <class _Clock, class _Duration1, class _Duration2>
12711271
struct _LIBCPP_TEMPLATE_VIS common_type<chrono::time_point<_Clock, _Duration1>,
@@ -2701,7 +2701,7 @@ constexpr hours make24(const hours& __h, bool __is_pm) noexcept
27012701
}
27022702

27032703
#endif // _LIBCPP_STD_VER > 17
2704-
} // chrono
2704+
} // namespace chrono
27052705

27062706
#if _LIBCPP_STD_VER > 11
27072707
// Suffixes for duration literals [time.duration.literals]
@@ -2786,11 +2786,12 @@ inline namespace literals
27862786
return chrono::year(static_cast<int>(__y));
27872787
}
27882788
#endif
2789-
}}
2789+
} // namespace chrono_literals
2790+
} // namespace literals
27902791

27912792
namespace chrono { // hoist the literals into namespace std::chrono
27922793
using namespace literals::chrono_literals;
2793-
}
2794+
} // namespace chrono
27942795

27952796
#endif
27962797

libcxx/include/complex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,8 +1485,8 @@ inline namespace literals
14851485
{
14861486
return { 0.0f, static_cast<float>(__im) };
14871487
}
1488-
}
1489-
}
1488+
} // namespace complex_literals
1489+
} // namespace literals
14901490
#endif
14911491

14921492
_LIBCPP_END_NAMESPACE_STD

libcxx/include/exception

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,6 @@ rethrow_if_nested(const _Ep&,
328328
{
329329
}
330330

331-
} // std
331+
} // namespace std
332332

333333
#endif // _LIBCPP_EXCEPTION

libcxx/include/ext/__hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,6 @@ template <> struct _LIBCPP_TEMPLATE_VIS hash<unsigned long>
129129
return __c;
130130
}
131131
};
132-
}
132+
} // namespace __gnu_cxx
133133

134134
#endif // _LIBCPP_EXT_HASH

libcxx/include/ext/hash_map

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,6 @@ operator!=(const hash_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x,
979979
return !(__x == __y);
980980
}
981981

982-
} // __gnu_cxx
982+
} // namespace __gnu_cxx
983983

984984
#endif // _LIBCPP_HASH_MAP

libcxx/include/ext/hash_set

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,6 @@ operator!=(const hash_multiset<_Value, _Hash, _Pred, _Alloc>& __x,
654654
return !(__x == __y);
655655
}
656656

657-
} // __gnu_cxx
657+
} // namespace __gnu_cxx
658658

659659
#endif // _LIBCPP_HASH_SET

libcxx/include/initializer_list

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,6 @@ end(initializer_list<_Ep> __il) _NOEXCEPT
112112

113113
#endif // !defined(_LIBCPP_CXX03_LANG)
114114

115-
} // std
115+
} // namespace std
116116

117117
#endif // _LIBCPP_INITIALIZER_LIST

libcxx/include/new

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ struct destroying_delete_t {
177177
inline constexpr destroying_delete_t destroying_delete{};
178178
#endif // _LIBCPP_STD_VER > 17
179179

180-
} // std
180+
} // namespace std
181181

182182
#if defined(_LIBCPP_CXX03_LANG)
183183
#define _THROW_BAD_ALLOC throw(std::bad_alloc)

libcxx/include/optional

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public:
175175
virtual const char* what() const _NOEXCEPT;
176176
};
177177

178-
} // std
178+
} // namespace std
179179

180180
#if _LIBCPP_STD_VER > 14
181181

libcxx/include/regex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ enum error_type
978978
__re_err_parse
979979
};
980980

981-
} // regex_constants
981+
} // namespace regex_constants
982982

983983
class _LIBCPP_EXCEPTION_ABI regex_error
984984
: public runtime_error

libcxx/include/stdexcept

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public:
209209
#endif
210210
};
211211

212-
} // std
212+
} // namespace std
213213

214214
_LIBCPP_BEGIN_NAMESPACE_STD
215215

libcxx/include/string

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4571,8 +4571,8 @@ inline namespace literals
45714571
{
45724572
return basic_string<char32_t> (__str, __len);
45734573
}
4574-
}
4575-
}
4574+
} // namespace string_literals
4575+
} // namespace literals
45764576
#endif
45774577

45784578
_LIBCPP_END_NAMESPACE_STD

libcxx/include/string_view

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,8 +947,8 @@ inline namespace literals
947947
{
948948
return basic_string_view<char32_t> (__str, __len);
949949
}
950-
}
951-
}
950+
} // namespace string_view_literals
951+
} // namespace literals
952952
#endif
953953
_LIBCPP_END_NAMESPACE_STD
954954

libcxx/include/thread

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ sleep_until(const chrono::time_point<chrono::steady_clock, _Duration>& __t)
403403
inline _LIBCPP_INLINE_VISIBILITY
404404
void yield() _NOEXCEPT {__libcpp_thread_yield();}
405405

406-
} // this_thread
406+
} // namespace this_thread
407407

408408
_LIBCPP_END_NAMESPACE_STD
409409

libcxx/include/tuple

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@ struct __find_exactly_one_checked<_T1> {
12001200
static_assert(!is_same<_T1, _T1>::value, "type not in empty type list");
12011201
};
12021202

1203-
} // namespace __find_detail;
1203+
} // namespace __find_detail
12041204

12051205
template <typename _T1, typename... _Args>
12061206
struct __find_exactly_one_t
@@ -1257,7 +1257,7 @@ struct __ignore_t
12571257

12581258
namespace {
12591259
constexpr __ignore_t<unsigned char> ignore = __ignore_t<unsigned char>();
1260-
}
1260+
} // namespace
12611261

12621262
template <class... _Tp>
12631263
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11

libcxx/include/type_traits

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3953,7 +3953,7 @@ struct __nothrow_swappable_with {
39533953
template <class _Tp, class _Up>
39543954
struct __nothrow_swappable_with<_Tp, _Up, false> : false_type {};
39553955

3956-
} // __detail
3956+
} // namespace __detail
39573957

39583958
template <class _Tp>
39593959
struct __is_swappable

libcxx/include/typeinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ class _LIBCPP_EXCEPTION_ABI bad_typeid
361361
virtual const char* what() const _NOEXCEPT;
362362
};
363363

364-
} // std
364+
} // namespace std
365365

366366
#endif // defined(_LIBCPP_ABI_VCRUNTIME)
367367

0 commit comments

Comments
 (0)