Skip to content

Commit

Permalink
[libc++] NFC: Normalize #endif // comment indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ldionne committed Apr 20, 2021
1 parent 620fdb9 commit 4cd6ca1
Show file tree
Hide file tree
Showing 259 changed files with 761 additions and 761 deletions.
2 changes: 1 addition & 1 deletion libcxx/include/__availability
Original file line number Diff line number Diff line change
Expand Up @@ -246,4 +246,4 @@
# define _LIBCPP_AVAILABILITY_THROW_BAD_VARIANT_ACCESS _LIBCPP_AVAILABILITY_BAD_VARIANT_ACCESS
#endif

#endif // _LIBCPP___AVAILABILITY
#endif // _LIBCPP___AVAILABILITY
2 changes: 1 addition & 1 deletion libcxx/include/__bit_reference
Original file line number Diff line number Diff line change
Expand Up @@ -1302,4 +1302,4 @@ _LIBCPP_END_NAMESPACE_STD

_LIBCPP_POP_MACROS

#endif // _LIBCPP___BIT_REFERENCE
#endif // _LIBCPP___BIT_REFERENCE
2 changes: 1 addition & 1 deletion libcxx/include/__bits
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ _LIBCPP_END_NAMESPACE_STD

_LIBCPP_POP_MACROS

#endif // _LIBCPP__BITS
#endif // _LIBCPP__BITS
20 changes: 10 additions & 10 deletions libcxx/include/__config
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
# else
# define _LIBCPP_STD_VER 21 // current year, or date of c++2b ratification
# endif
#endif // _LIBCPP_STD_VER
#endif // _LIBCPP_STD_VER

#if defined(__ELF__)
# define _LIBCPP_OBJECT_FORMAT_ELF 1
Expand Down Expand Up @@ -238,13 +238,13 @@
# if __LITTLE_ENDIAN__
# define _LIBCPP_LITTLE_ENDIAN
# endif // __LITTLE_ENDIAN__
#endif // __LITTLE_ENDIAN__
#endif // __LITTLE_ENDIAN__

#ifdef __BIG_ENDIAN__
# if __BIG_ENDIAN__
# define _LIBCPP_BIG_ENDIAN
# endif // __BIG_ENDIAN__
#endif // __BIG_ENDIAN__
#endif // __BIG_ENDIAN__

#ifdef __BYTE_ORDER__
# if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
Expand All @@ -265,7 +265,7 @@
# ifndef __LONG_LONG_SUPPORTED
# define _LIBCPP_HAS_NO_LONG_LONG
# endif // __LONG_LONG_SUPPORTED
#endif // __FreeBSD__
#endif // __FreeBSD__

#if defined(__NetBSD__) || defined(__OpenBSD__)
# include <sys/endian.h>
Expand All @@ -274,7 +274,7 @@
# else // _BYTE_ORDER == _LITTLE_ENDIAN
# define _LIBCPP_BIG_ENDIAN
# endif // _BYTE_ORDER == _LITTLE_ENDIAN
#endif // defined(__NetBSD__) || defined(__OpenBSD__)
#endif // defined(__NetBSD__) || defined(__OpenBSD__)

#if defined(_WIN32)
# define _LIBCPP_WIN32API
Expand Down Expand Up @@ -343,7 +343,7 @@
# else // __BYTE_ORDER == __BIG_ENDIAN
# error unable to determine endian
# endif
#endif // !defined(_LIBCPP_LITTLE_ENDIAN) && !defined(_LIBCPP_BIG_ENDIAN)
#endif // !defined(_LIBCPP_LITTLE_ENDIAN) && !defined(_LIBCPP_BIG_ENDIAN)

#if __has_attribute(__no_sanitize__) && !defined(_LIBCPP_COMPILER_GCC)
# define _LIBCPP_NO_CFI __attribute__((__no_sanitize__("cfi")))
Expand Down Expand Up @@ -821,7 +821,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_END_NAMESPACE_STD
#ifdef _LIBCPP_HAS_NO_UNICODE_CHARS
typedef unsigned short char16_t;
typedef unsigned int char32_t;
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS

#ifndef __SIZEOF_INT128__
#define _LIBCPP_HAS_NO_INT128
Expand All @@ -830,7 +830,7 @@ typedef unsigned int char32_t;
#ifdef _LIBCPP_CXX03_LANG
# define static_assert(...) _Static_assert(__VA_ARGS__)
# define decltype(...) __decltype(__VA_ARGS__)
#endif // _LIBCPP_CXX03_LANG
#endif // _LIBCPP_CXX03_LANG

#ifdef _LIBCPP_CXX03_LANG
# define _LIBCPP_CONSTEXPR
Expand Down Expand Up @@ -888,7 +888,7 @@ typedef unsigned int char32_t;
#else // _LIBCPP_HAS_NO_STRONG_ENUMS
# define _LIBCPP_DECLARE_STRONG_ENUM(x) enum class _LIBCPP_ENUM_VIS x
# define _LIBCPP_DECLARE_STRONG_ENUM_EPILOG(x)
#endif // _LIBCPP_HAS_NO_STRONG_ENUMS
#endif // _LIBCPP_HAS_NO_STRONG_ENUMS

// _LIBCPP_DEBUG potential values:
// - undefined: No assertions. This is the default.
Expand Down Expand Up @@ -1293,7 +1293,7 @@ extern "C" _LIBCPP_FUNC_VIS void __sanitizer_annotate_contiguous_container(
# else
# define _LIBCPP_THREAD_SAFETY_ANNOTATION(x)
# endif
#endif // _LIBCPP_THREAD_SAFETY_ANNOTATION
#endif // _LIBCPP_THREAD_SAFETY_ANNOTATION

#if __has_attribute(require_constant_initialization)
# define _LIBCPP_SAFE_STATIC __attribute__((__require_constant_initialization__))
Expand Down
2 changes: 1 addition & 1 deletion libcxx/include/__debug
Original file line number Diff line number Diff line change
Expand Up @@ -270,4 +270,4 @@ _LIBCPP_FUNC_VIS const __libcpp_db* __get_const_db();

_LIBCPP_END_NAMESPACE_STD

#endif // _LIBCPP_DEBUG_H
#endif // _LIBCPP_DEBUG_H
2 changes: 1 addition & 1 deletion libcxx/include/__errc
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,4 @@ _LIBCPP_DECLARE_STRONG_ENUM_EPILOG(errc)

_LIBCPP_END_NAMESPACE_STD

#endif // _LIBCPP___ERRC
#endif // _LIBCPP___ERRC
42 changes: 21 additions & 21 deletions libcxx/include/__functional_03
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public:
#ifndef _LIBCPP_NO_RTTI
virtual const void* target(const type_info&) const = 0;
virtual const std::type_info& target_type() const = 0;
#endif // _LIBCPP_NO_RTTI
#endif // _LIBCPP_NO_RTTI
};

template<class _Rp, class _A0>
Expand All @@ -55,7 +55,7 @@ public:
#ifndef _LIBCPP_NO_RTTI
virtual const void* target(const type_info&) const = 0;
virtual const std::type_info& target_type() const = 0;
#endif // _LIBCPP_NO_RTTI
#endif // _LIBCPP_NO_RTTI
};

template<class _Rp, class _A0, class _A1>
Expand All @@ -74,7 +74,7 @@ public:
#ifndef _LIBCPP_NO_RTTI
virtual const void* target(const type_info&) const = 0;
virtual const std::type_info& target_type() const = 0;
#endif // _LIBCPP_NO_RTTI
#endif // _LIBCPP_NO_RTTI
};

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

template<class _FD, class _Alloc, class _FB> class __func;
Expand All @@ -114,7 +114,7 @@ public:
#ifndef _LIBCPP_NO_RTTI
virtual const void* target(const type_info&) const;
virtual const std::type_info& target_type() const;
#endif // _LIBCPP_NO_RTTI
#endif // _LIBCPP_NO_RTTI
};

template<class _Fp, class _Alloc, class _Rp>
Expand Down Expand Up @@ -181,7 +181,7 @@ __func<_Fp, _Alloc, _Rp()>::target_type() const
return typeid(_Fp);
}

#endif // _LIBCPP_NO_RTTI
#endif // _LIBCPP_NO_RTTI

template<class _Fp, class _Alloc, class _Rp, class _A0>
class __func<_Fp, _Alloc, _Rp(_A0)>
Expand All @@ -200,7 +200,7 @@ public:
#ifndef _LIBCPP_NO_RTTI
virtual const void* target(const type_info&) const;
virtual const std::type_info& target_type() const;
#endif // _LIBCPP_NO_RTTI
#endif // _LIBCPP_NO_RTTI
};

template<class _Fp, class _Alloc, class _Rp, class _A0>
Expand Down Expand Up @@ -267,7 +267,7 @@ __func<_Fp, _Alloc, _Rp(_A0)>::target_type() const
return typeid(_Fp);
}

#endif // _LIBCPP_NO_RTTI
#endif // _LIBCPP_NO_RTTI

template<class _Fp, class _Alloc, class _Rp, class _A0, class _A1>
class __func<_Fp, _Alloc, _Rp(_A0, _A1)>
Expand All @@ -286,7 +286,7 @@ public:
#ifndef _LIBCPP_NO_RTTI
virtual const void* target(const type_info&) const;
virtual const std::type_info& target_type() const;
#endif // _LIBCPP_NO_RTTI
#endif // _LIBCPP_NO_RTTI
};

template<class _Fp, class _Alloc, class _Rp, class _A0, class _A1>
Expand Down Expand Up @@ -353,7 +353,7 @@ __func<_Fp, _Alloc, _Rp(_A0, _A1)>::target_type() const
return typeid(_Fp);
}

#endif // _LIBCPP_NO_RTTI
#endif // _LIBCPP_NO_RTTI

template<class _Fp, class _Alloc, class _Rp, class _A0, class _A1, class _A2>
class __func<_Fp, _Alloc, _Rp(_A0, _A1, _A2)>
Expand All @@ -372,7 +372,7 @@ public:
#ifndef _LIBCPP_NO_RTTI
virtual const void* target(const type_info&) const;
virtual const std::type_info& target_type() const;
#endif // _LIBCPP_NO_RTTI
#endif // _LIBCPP_NO_RTTI
};

template<class _Fp, class _Alloc, class _Rp, class _A0, class _A1, class _A2>
Expand Down Expand Up @@ -439,7 +439,7 @@ __func<_Fp, _Alloc, _Rp(_A0, _A1, _A2)>::target_type() const
return typeid(_Fp);
}

#endif // _LIBCPP_NO_RTTI
#endif // _LIBCPP_NO_RTTI

} // __function

Expand Down Expand Up @@ -510,7 +510,7 @@ public:
const std::type_info& target_type() const;
template <typename _Tp> _Tp* target();
template <typename _Tp> const _Tp* target() const;
#endif // _LIBCPP_NO_RTTI
#endif // _LIBCPP_NO_RTTI
};

template<class _Rp>
Expand Down Expand Up @@ -720,7 +720,7 @@ function<_Rp()>::target() const
return (const _Tp*)__f_->target(typeid(_Tp));
}

#endif // _LIBCPP_NO_RTTI
#endif // _LIBCPP_NO_RTTI

template<class _Rp, class _A0>
class _LIBCPP_TEMPLATE_VIS function<_Rp(_A0)>
Expand Down Expand Up @@ -790,7 +790,7 @@ public:
const std::type_info& target_type() const;
template <typename _Tp> _Tp* target();
template <typename _Tp> const _Tp* target() const;
#endif // _LIBCPP_NO_RTTI
#endif // _LIBCPP_NO_RTTI
};

template<class _Rp, class _A0>
Expand Down Expand Up @@ -1000,7 +1000,7 @@ function<_Rp(_A0)>::target() const
return (const _Tp*)__f_->target(typeid(_Tp));
}

#endif // _LIBCPP_NO_RTTI
#endif // _LIBCPP_NO_RTTI

template<class _Rp, class _A0, class _A1>
class _LIBCPP_TEMPLATE_VIS function<_Rp(_A0, _A1)>
Expand Down Expand Up @@ -1070,7 +1070,7 @@ public:
const std::type_info& target_type() const;
template <typename _Tp> _Tp* target();
template <typename _Tp> const _Tp* target() const;
#endif // _LIBCPP_NO_RTTI
#endif // _LIBCPP_NO_RTTI
};

template<class _Rp, class _A0, class _A1>
Expand Down Expand Up @@ -1280,7 +1280,7 @@ function<_Rp(_A0, _A1)>::target() const
return (const _Tp*)__f_->target(typeid(_Tp));
}

#endif // _LIBCPP_NO_RTTI
#endif // _LIBCPP_NO_RTTI

template<class _Rp, class _A0, class _A1, class _A2>
class _LIBCPP_TEMPLATE_VIS function<_Rp(_A0, _A1, _A2)>
Expand Down Expand Up @@ -1349,7 +1349,7 @@ public:
const std::type_info& target_type() const;
template <typename _Tp> _Tp* target();
template <typename _Tp> const _Tp* target() const;
#endif // _LIBCPP_NO_RTTI
#endif // _LIBCPP_NO_RTTI
};

template<class _Rp, class _A0, class _A1, class _A2>
Expand Down Expand Up @@ -1560,7 +1560,7 @@ function<_Rp(_A0, _A1, _A2)>::target() const
return (const _Tp*)__f_->target(typeid(_Tp));
}

#endif // _LIBCPP_NO_RTTI
#endif // _LIBCPP_NO_RTTI

template <class _Fp>
inline _LIBCPP_INLINE_VISIBILITY
Expand Down Expand Up @@ -1588,4 +1588,4 @@ void
swap(function<_Fp>& __x, function<_Fp>& __y)
{return __x.swap(__y);}

#endif // _LIBCPP_FUNCTIONAL_03
#endif // _LIBCPP_FUNCTIONAL_03
6 changes: 3 additions & 3 deletions libcxx/include/__functional_base
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ struct __invoke_return

#include <__functional_base_03>

#endif // !defined(_LIBCPP_CXX03_LANG)
#endif // !defined(_LIBCPP_CXX03_LANG)


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

#endif // _LIBCPP_CXX03_LANG
#endif // _LIBCPP_CXX03_LANG

#if _LIBCPP_STD_VER > 14

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

_LIBCPP_END_NAMESPACE_STD

#endif // _LIBCPP_FUNCTIONAL_BASE
#endif // _LIBCPP_FUNCTIONAL_BASE
2 changes: 1 addition & 1 deletion libcxx/include/__functional_base_03
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,4 @@ template <class _Ret, class _Class, class _A0, class _A1, class _A2>
struct __invoke_return2<_Ret _Class::*, _A0, _A1, _A2> {
typedef typename __enable_invoke<_Ret _Class::*, _A0>::type type;
};
#endif // _LIBCPP_FUNCTIONAL_BASE_03
#endif // _LIBCPP_FUNCTIONAL_BASE_03
Loading

0 comments on commit 4cd6ca1

Please sign in to comment.