Skip to content

Commit 4cd6ca1

Browse files
committed
[libc++] NFC: Normalize #endif // comment indentation
1 parent 620fdb9 commit 4cd6ca1

File tree

259 files changed

+761
-761
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

259 files changed

+761
-761
lines changed

libcxx/include/__availability

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,4 +246,4 @@
246246
# define _LIBCPP_AVAILABILITY_THROW_BAD_VARIANT_ACCESS _LIBCPP_AVAILABILITY_BAD_VARIANT_ACCESS
247247
#endif
248248

249-
#endif // _LIBCPP___AVAILABILITY
249+
#endif // _LIBCPP___AVAILABILITY

libcxx/include/__bit_reference

+1-1
Original file line numberDiff line numberDiff line change
@@ -1302,4 +1302,4 @@ _LIBCPP_END_NAMESPACE_STD
13021302

13031303
_LIBCPP_POP_MACROS
13041304

1305-
#endif // _LIBCPP___BIT_REFERENCE
1305+
#endif // _LIBCPP___BIT_REFERENCE

libcxx/include/__bits

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,4 @@ _LIBCPP_END_NAMESPACE_STD
142142

143143
_LIBCPP_POP_MACROS
144144

145-
#endif // _LIBCPP__BITS
145+
#endif // _LIBCPP__BITS

libcxx/include/__config

+10-10
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
# else
5757
# define _LIBCPP_STD_VER 21 // current year, or date of c++2b ratification
5858
# endif
59-
#endif // _LIBCPP_STD_VER
59+
#endif // _LIBCPP_STD_VER
6060

6161
#if defined(__ELF__)
6262
# define _LIBCPP_OBJECT_FORMAT_ELF 1
@@ -238,13 +238,13 @@
238238
# if __LITTLE_ENDIAN__
239239
# define _LIBCPP_LITTLE_ENDIAN
240240
# endif // __LITTLE_ENDIAN__
241-
#endif // __LITTLE_ENDIAN__
241+
#endif // __LITTLE_ENDIAN__
242242

243243
#ifdef __BIG_ENDIAN__
244244
# if __BIG_ENDIAN__
245245
# define _LIBCPP_BIG_ENDIAN
246246
# endif // __BIG_ENDIAN__
247-
#endif // __BIG_ENDIAN__
247+
#endif // __BIG_ENDIAN__
248248

249249
#ifdef __BYTE_ORDER__
250250
# if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
@@ -265,7 +265,7 @@
265265
# ifndef __LONG_LONG_SUPPORTED
266266
# define _LIBCPP_HAS_NO_LONG_LONG
267267
# endif // __LONG_LONG_SUPPORTED
268-
#endif // __FreeBSD__
268+
#endif // __FreeBSD__
269269

270270
#if defined(__NetBSD__) || defined(__OpenBSD__)
271271
# include <sys/endian.h>
@@ -274,7 +274,7 @@
274274
# else // _BYTE_ORDER == _LITTLE_ENDIAN
275275
# define _LIBCPP_BIG_ENDIAN
276276
# endif // _BYTE_ORDER == _LITTLE_ENDIAN
277-
#endif // defined(__NetBSD__) || defined(__OpenBSD__)
277+
#endif // defined(__NetBSD__) || defined(__OpenBSD__)
278278

279279
#if defined(_WIN32)
280280
# define _LIBCPP_WIN32API
@@ -343,7 +343,7 @@
343343
# else // __BYTE_ORDER == __BIG_ENDIAN
344344
# error unable to determine endian
345345
# endif
346-
#endif // !defined(_LIBCPP_LITTLE_ENDIAN) && !defined(_LIBCPP_BIG_ENDIAN)
346+
#endif // !defined(_LIBCPP_LITTLE_ENDIAN) && !defined(_LIBCPP_BIG_ENDIAN)
347347

348348
#if __has_attribute(__no_sanitize__) && !defined(_LIBCPP_COMPILER_GCC)
349349
# define _LIBCPP_NO_CFI __attribute__((__no_sanitize__("cfi")))
@@ -821,7 +821,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_END_NAMESPACE_STD
821821
#ifdef _LIBCPP_HAS_NO_UNICODE_CHARS
822822
typedef unsigned short char16_t;
823823
typedef unsigned int char32_t;
824-
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
824+
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
825825

826826
#ifndef __SIZEOF_INT128__
827827
#define _LIBCPP_HAS_NO_INT128
@@ -830,7 +830,7 @@ typedef unsigned int char32_t;
830830
#ifdef _LIBCPP_CXX03_LANG
831831
# define static_assert(...) _Static_assert(__VA_ARGS__)
832832
# define decltype(...) __decltype(__VA_ARGS__)
833-
#endif // _LIBCPP_CXX03_LANG
833+
#endif // _LIBCPP_CXX03_LANG
834834

835835
#ifdef _LIBCPP_CXX03_LANG
836836
# define _LIBCPP_CONSTEXPR
@@ -888,7 +888,7 @@ typedef unsigned int char32_t;
888888
#else // _LIBCPP_HAS_NO_STRONG_ENUMS
889889
# define _LIBCPP_DECLARE_STRONG_ENUM(x) enum class _LIBCPP_ENUM_VIS x
890890
# define _LIBCPP_DECLARE_STRONG_ENUM_EPILOG(x)
891-
#endif // _LIBCPP_HAS_NO_STRONG_ENUMS
891+
#endif // _LIBCPP_HAS_NO_STRONG_ENUMS
892892

893893
// _LIBCPP_DEBUG potential values:
894894
// - undefined: No assertions. This is the default.
@@ -1293,7 +1293,7 @@ extern "C" _LIBCPP_FUNC_VIS void __sanitizer_annotate_contiguous_container(
12931293
# else
12941294
# define _LIBCPP_THREAD_SAFETY_ANNOTATION(x)
12951295
# endif
1296-
#endif // _LIBCPP_THREAD_SAFETY_ANNOTATION
1296+
#endif // _LIBCPP_THREAD_SAFETY_ANNOTATION
12971297

12981298
#if __has_attribute(require_constant_initialization)
12991299
# define _LIBCPP_SAFE_STATIC __attribute__((__require_constant_initialization__))

libcxx/include/__debug

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,4 +270,4 @@ _LIBCPP_FUNC_VIS const __libcpp_db* __get_const_db();
270270

271271
_LIBCPP_END_NAMESPACE_STD
272272

273-
#endif // _LIBCPP_DEBUG_H
273+
#endif // _LIBCPP_DEBUG_H

libcxx/include/__errc

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,4 +214,4 @@ _LIBCPP_DECLARE_STRONG_ENUM_EPILOG(errc)
214214

215215
_LIBCPP_END_NAMESPACE_STD
216216

217-
#endif // _LIBCPP___ERRC
217+
#endif // _LIBCPP___ERRC

libcxx/include/__functional_03

+21-21
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public:
3636
#ifndef _LIBCPP_NO_RTTI
3737
virtual const void* target(const type_info&) const = 0;
3838
virtual const std::type_info& target_type() const = 0;
39-
#endif // _LIBCPP_NO_RTTI
39+
#endif // _LIBCPP_NO_RTTI
4040
};
4141

4242
template<class _Rp, class _A0>
@@ -55,7 +55,7 @@ public:
5555
#ifndef _LIBCPP_NO_RTTI
5656
virtual const void* target(const type_info&) const = 0;
5757
virtual const std::type_info& target_type() const = 0;
58-
#endif // _LIBCPP_NO_RTTI
58+
#endif // _LIBCPP_NO_RTTI
5959
};
6060

6161
template<class _Rp, class _A0, class _A1>
@@ -74,7 +74,7 @@ public:
7474
#ifndef _LIBCPP_NO_RTTI
7575
virtual const void* target(const type_info&) const = 0;
7676
virtual const std::type_info& target_type() const = 0;
77-
#endif // _LIBCPP_NO_RTTI
77+
#endif // _LIBCPP_NO_RTTI
7878
};
7979

8080
template<class _Rp, class _A0, class _A1, class _A2>
@@ -93,7 +93,7 @@ public:
9393
#ifndef _LIBCPP_NO_RTTI
9494
virtual const void* target(const type_info&) const = 0;
9595
virtual const std::type_info& target_type() const = 0;
96-
#endif // _LIBCPP_NO_RTTI
96+
#endif // _LIBCPP_NO_RTTI
9797
};
9898

9999
template<class _FD, class _Alloc, class _FB> class __func;
@@ -114,7 +114,7 @@ public:
114114
#ifndef _LIBCPP_NO_RTTI
115115
virtual const void* target(const type_info&) const;
116116
virtual const std::type_info& target_type() const;
117-
#endif // _LIBCPP_NO_RTTI
117+
#endif // _LIBCPP_NO_RTTI
118118
};
119119

120120
template<class _Fp, class _Alloc, class _Rp>
@@ -181,7 +181,7 @@ __func<_Fp, _Alloc, _Rp()>::target_type() const
181181
return typeid(_Fp);
182182
}
183183

184-
#endif // _LIBCPP_NO_RTTI
184+
#endif // _LIBCPP_NO_RTTI
185185

186186
template<class _Fp, class _Alloc, class _Rp, class _A0>
187187
class __func<_Fp, _Alloc, _Rp(_A0)>
@@ -200,7 +200,7 @@ public:
200200
#ifndef _LIBCPP_NO_RTTI
201201
virtual const void* target(const type_info&) const;
202202
virtual const std::type_info& target_type() const;
203-
#endif // _LIBCPP_NO_RTTI
203+
#endif // _LIBCPP_NO_RTTI
204204
};
205205

206206
template<class _Fp, class _Alloc, class _Rp, class _A0>
@@ -267,7 +267,7 @@ __func<_Fp, _Alloc, _Rp(_A0)>::target_type() const
267267
return typeid(_Fp);
268268
}
269269

270-
#endif // _LIBCPP_NO_RTTI
270+
#endif // _LIBCPP_NO_RTTI
271271

272272
template<class _Fp, class _Alloc, class _Rp, class _A0, class _A1>
273273
class __func<_Fp, _Alloc, _Rp(_A0, _A1)>
@@ -286,7 +286,7 @@ public:
286286
#ifndef _LIBCPP_NO_RTTI
287287
virtual const void* target(const type_info&) const;
288288
virtual const std::type_info& target_type() const;
289-
#endif // _LIBCPP_NO_RTTI
289+
#endif // _LIBCPP_NO_RTTI
290290
};
291291

292292
template<class _Fp, class _Alloc, class _Rp, class _A0, class _A1>
@@ -353,7 +353,7 @@ __func<_Fp, _Alloc, _Rp(_A0, _A1)>::target_type() const
353353
return typeid(_Fp);
354354
}
355355

356-
#endif // _LIBCPP_NO_RTTI
356+
#endif // _LIBCPP_NO_RTTI
357357

358358
template<class _Fp, class _Alloc, class _Rp, class _A0, class _A1, class _A2>
359359
class __func<_Fp, _Alloc, _Rp(_A0, _A1, _A2)>
@@ -372,7 +372,7 @@ public:
372372
#ifndef _LIBCPP_NO_RTTI
373373
virtual const void* target(const type_info&) const;
374374
virtual const std::type_info& target_type() const;
375-
#endif // _LIBCPP_NO_RTTI
375+
#endif // _LIBCPP_NO_RTTI
376376
};
377377

378378
template<class _Fp, class _Alloc, class _Rp, class _A0, class _A1, class _A2>
@@ -439,7 +439,7 @@ __func<_Fp, _Alloc, _Rp(_A0, _A1, _A2)>::target_type() const
439439
return typeid(_Fp);
440440
}
441441

442-
#endif // _LIBCPP_NO_RTTI
442+
#endif // _LIBCPP_NO_RTTI
443443

444444
} // __function
445445

@@ -510,7 +510,7 @@ public:
510510
const std::type_info& target_type() const;
511511
template <typename _Tp> _Tp* target();
512512
template <typename _Tp> const _Tp* target() const;
513-
#endif // _LIBCPP_NO_RTTI
513+
#endif // _LIBCPP_NO_RTTI
514514
};
515515

516516
template<class _Rp>
@@ -720,7 +720,7 @@ function<_Rp()>::target() const
720720
return (const _Tp*)__f_->target(typeid(_Tp));
721721
}
722722

723-
#endif // _LIBCPP_NO_RTTI
723+
#endif // _LIBCPP_NO_RTTI
724724

725725
template<class _Rp, class _A0>
726726
class _LIBCPP_TEMPLATE_VIS function<_Rp(_A0)>
@@ -790,7 +790,7 @@ public:
790790
const std::type_info& target_type() const;
791791
template <typename _Tp> _Tp* target();
792792
template <typename _Tp> const _Tp* target() const;
793-
#endif // _LIBCPP_NO_RTTI
793+
#endif // _LIBCPP_NO_RTTI
794794
};
795795

796796
template<class _Rp, class _A0>
@@ -1000,7 +1000,7 @@ function<_Rp(_A0)>::target() const
10001000
return (const _Tp*)__f_->target(typeid(_Tp));
10011001
}
10021002

1003-
#endif // _LIBCPP_NO_RTTI
1003+
#endif // _LIBCPP_NO_RTTI
10041004

10051005
template<class _Rp, class _A0, class _A1>
10061006
class _LIBCPP_TEMPLATE_VIS function<_Rp(_A0, _A1)>
@@ -1070,7 +1070,7 @@ public:
10701070
const std::type_info& target_type() const;
10711071
template <typename _Tp> _Tp* target();
10721072
template <typename _Tp> const _Tp* target() const;
1073-
#endif // _LIBCPP_NO_RTTI
1073+
#endif // _LIBCPP_NO_RTTI
10741074
};
10751075

10761076
template<class _Rp, class _A0, class _A1>
@@ -1280,7 +1280,7 @@ function<_Rp(_A0, _A1)>::target() const
12801280
return (const _Tp*)__f_->target(typeid(_Tp));
12811281
}
12821282

1283-
#endif // _LIBCPP_NO_RTTI
1283+
#endif // _LIBCPP_NO_RTTI
12841284

12851285
template<class _Rp, class _A0, class _A1, class _A2>
12861286
class _LIBCPP_TEMPLATE_VIS function<_Rp(_A0, _A1, _A2)>
@@ -1349,7 +1349,7 @@ public:
13491349
const std::type_info& target_type() const;
13501350
template <typename _Tp> _Tp* target();
13511351
template <typename _Tp> const _Tp* target() const;
1352-
#endif // _LIBCPP_NO_RTTI
1352+
#endif // _LIBCPP_NO_RTTI
13531353
};
13541354

13551355
template<class _Rp, class _A0, class _A1, class _A2>
@@ -1560,7 +1560,7 @@ function<_Rp(_A0, _A1, _A2)>::target() const
15601560
return (const _Tp*)__f_->target(typeid(_Tp));
15611561
}
15621562

1563-
#endif // _LIBCPP_NO_RTTI
1563+
#endif // _LIBCPP_NO_RTTI
15641564

15651565
template <class _Fp>
15661566
inline _LIBCPP_INLINE_VISIBILITY
@@ -1588,4 +1588,4 @@ void
15881588
swap(function<_Fp>& __x, function<_Fp>& __y)
15891589
{return __x.swap(__y);}
15901590

1591-
#endif // _LIBCPP_FUNCTIONAL_03
1591+
#endif // _LIBCPP_FUNCTIONAL_03

libcxx/include/__functional_base

+3-3
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ struct __invoke_return
305305

306306
#include <__functional_base_03>
307307

308-
#endif // !defined(_LIBCPP_CXX03_LANG)
308+
#endif // !defined(_LIBCPP_CXX03_LANG)
309309

310310

311311
template <class _Ret, bool = is_void<_Ret>::value>
@@ -663,7 +663,7 @@ void __user_alloc_construct_impl (integral_constant<int, 2>, _Tp *__storage, con
663663
new (__storage) _Tp (_VSTD::forward<_Args>(__args)..., __a);
664664
}
665665

666-
#endif // _LIBCPP_CXX03_LANG
666+
#endif // _LIBCPP_CXX03_LANG
667667

668668
#if _LIBCPP_STD_VER > 14
669669

@@ -679,4 +679,4 @@ invoke(_Fn&& __f, _Args&&... __args)
679679

680680
_LIBCPP_END_NAMESPACE_STD
681681

682-
#endif // _LIBCPP_FUNCTIONAL_BASE
682+
#endif // _LIBCPP_FUNCTIONAL_BASE

libcxx/include/__functional_base_03

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,4 +220,4 @@ template <class _Ret, class _Class, class _A0, class _A1, class _A2>
220220
struct __invoke_return2<_Ret _Class::*, _A0, _A1, _A2> {
221221
typedef typename __enable_invoke<_Ret _Class::*, _A0>::type type;
222222
};
223-
#endif // _LIBCPP_FUNCTIONAL_BASE_03
223+
#endif // _LIBCPP_FUNCTIONAL_BASE_03

0 commit comments

Comments
 (0)