Skip to content

Commit 42f2dc6

Browse files
Misc - Refactor cases of >2 underscores as per libcxx/TODO.txt
This commit refactors all trivial cases of >2 underscores into single underscore as per libcxx/TODO.txt. Namely: * LIBC___ -> LIBC_ * CXX03___ -> CXX03_ * EXPERIMENTAL___ -> EXPERIMENTAL_ This leaves the typicly unique tripple underscore cases (e.g., concatinated _x/x_ macros) untouched. The symbols modified are specific, and limmited to the libcxx subfolder and should have no exposed impact on other components. The TODO.txt file was left untouched as there are still a few non-trivial cases of >2 underscore uses.
1 parent 63fe60f commit 42f2dc6

File tree

1,533 files changed

+4609
-4609
lines changed

Some content is hidden

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

1,533 files changed

+4609
-4609
lines changed

libcxx/include/__algorithm/adjacent_find.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
//
88
//===----------------------------------------------------------------------===//
99

10-
#ifndef _LIBCPP___ALGORITHM_ADJACENT_FIND_H
11-
#define _LIBCPP___ALGORITHM_ADJACENT_FIND_H
10+
#ifndef _LIBCPP_ALGORITHM_ADJACENT_FIND_H
11+
#define _LIBCPP_ALGORITHM_ADJACENT_FIND_H
1212

1313
#include <__algorithm/comp.h>
1414
#include <__config>
@@ -57,4 +57,4 @@ _LIBCPP_END_NAMESPACE_STD
5757

5858
_LIBCPP_POP_MACROS
5959

60-
#endif // _LIBCPP___ALGORITHM_ADJACENT_FIND_H
60+
#endif // _LIBCPP_ALGORITHM_ADJACENT_FIND_H

libcxx/include/__algorithm/all_of.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
//
88
//===----------------------------------------------------------------------===//
99

10-
#ifndef _LIBCPP___ALGORITHM_ALL_OF_H
11-
#define _LIBCPP___ALGORITHM_ALL_OF_H
10+
#ifndef _LIBCPP_ALGORITHM_ALL_OF_H
11+
#define _LIBCPP_ALGORITHM_ALL_OF_H
1212

1313
#include <__config>
1414
#include <__functional/identity.h>
@@ -39,4 +39,4 @@ all_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) {
3939

4040
_LIBCPP_END_NAMESPACE_STD
4141

42-
#endif // _LIBCPP___ALGORITHM_ALL_OF_H
42+
#endif // _LIBCPP_ALGORITHM_ALL_OF_H

libcxx/include/__algorithm/any_of.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
//
88
//===----------------------------------------------------------------------===//
99

10-
#ifndef _LIBCPP___ALGORITHM_ANY_OF_H
11-
#define _LIBCPP___ALGORITHM_ANY_OF_H
10+
#ifndef _LIBCPP_ALGORITHM_ANY_OF_H
11+
#define _LIBCPP_ALGORITHM_ANY_OF_H
1212

1313
#include <__config>
1414
#include <__functional/identity.h>
@@ -39,4 +39,4 @@ any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) {
3939

4040
_LIBCPP_END_NAMESPACE_STD
4141

42-
#endif // _LIBCPP___ALGORITHM_ANY_OF_H
42+
#endif // _LIBCPP_ALGORITHM_ANY_OF_H

libcxx/include/__algorithm/binary_search.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef _LIBCPP___ALGORITHM_BINARY_SEARCH_H
10-
#define _LIBCPP___ALGORITHM_BINARY_SEARCH_H
9+
#ifndef _LIBCPP_ALGORITHM_BINARY_SEARCH_H
10+
#define _LIBCPP_ALGORITHM_BINARY_SEARCH_H
1111

1212
#include <__algorithm/comp.h>
1313
#include <__algorithm/comp_ref_type.h>
@@ -35,4 +35,4 @@ binary_search(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __va
3535

3636
_LIBCPP_END_NAMESPACE_STD
3737

38-
#endif // _LIBCPP___ALGORITHM_BINARY_SEARCH_H
38+
#endif // _LIBCPP_ALGORITHM_BINARY_SEARCH_H

libcxx/include/__algorithm/clamp.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef _LIBCPP___ALGORITHM_CLAMP_H
10-
#define _LIBCPP___ALGORITHM_CLAMP_H
9+
#ifndef _LIBCPP_ALGORITHM_CLAMP_H
10+
#define _LIBCPP_ALGORITHM_CLAMP_H
1111

1212
#include <__algorithm/comp.h>
1313
#include <__assert>
@@ -41,4 +41,4 @@ clamp(_LIBCPP_LIFETIMEBOUND const _Tp& __v,
4141

4242
_LIBCPP_END_NAMESPACE_STD
4343

44-
#endif // _LIBCPP___ALGORITHM_CLAMP_H
44+
#endif // _LIBCPP_ALGORITHM_CLAMP_H

libcxx/include/__algorithm/comp.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef _LIBCPP___ALGORITHM_COMP_H
10-
#define _LIBCPP___ALGORITHM_COMP_H
9+
#ifndef _LIBCPP_ALGORITHM_COMP_H
10+
#define _LIBCPP_ALGORITHM_COMP_H
1111

1212
#include <__config>
1313
#include <__type_traits/desugars_to.h>
@@ -54,4 +54,4 @@ inline const bool __is_generic_transparent_comparator_v<__less<> > = true;
5454

5555
_LIBCPP_END_NAMESPACE_STD
5656

57-
#endif // _LIBCPP___ALGORITHM_COMP_H
57+
#endif // _LIBCPP_ALGORITHM_COMP_H

libcxx/include/__algorithm/comp_ref_type.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef _LIBCPP___ALGORITHM_COMP_REF_TYPE_H
10-
#define _LIBCPP___ALGORITHM_COMP_REF_TYPE_H
9+
#ifndef _LIBCPP_ALGORITHM_COMP_REF_TYPE_H
10+
#define _LIBCPP_ALGORITHM_COMP_REF_TYPE_H
1111

1212
#include <__assert>
1313
#include <__config>
@@ -64,4 +64,4 @@ using __comp_ref_type _LIBCPP_NODEBUG = _Comp&;
6464

6565
_LIBCPP_END_NAMESPACE_STD
6666

67-
#endif // _LIBCPP___ALGORITHM_COMP_REF_TYPE_H
67+
#endif // _LIBCPP_ALGORITHM_COMP_REF_TYPE_H

libcxx/include/__algorithm/copy.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef _LIBCPP___ALGORITHM_COPY_H
10-
#define _LIBCPP___ALGORITHM_COPY_H
9+
#ifndef _LIBCPP_ALGORITHM_COPY_H
10+
#define _LIBCPP_ALGORITHM_COPY_H
1111

1212
#include <__algorithm/copy_move_common.h>
1313
#include <__algorithm/for_each_segment.h>
@@ -252,4 +252,4 @@ _LIBCPP_END_NAMESPACE_STD
252252

253253
_LIBCPP_POP_MACROS
254254

255-
#endif // _LIBCPP___ALGORITHM_COPY_H
255+
#endif // _LIBCPP_ALGORITHM_COPY_H

libcxx/include/__algorithm/copy_backward.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef _LIBCPP___ALGORITHM_COPY_BACKWARD_H
10-
#define _LIBCPP___ALGORITHM_COPY_BACKWARD_H
9+
#ifndef _LIBCPP_ALGORITHM_COPY_BACKWARD_H
10+
#define _LIBCPP_ALGORITHM_COPY_BACKWARD_H
1111

1212
#include <__algorithm/copy_move_common.h>
1313
#include <__algorithm/copy_n.h>
@@ -268,4 +268,4 @@ _LIBCPP_END_NAMESPACE_STD
268268

269269
_LIBCPP_POP_MACROS
270270

271-
#endif // _LIBCPP___ALGORITHM_COPY_BACKWARD_H
271+
#endif // _LIBCPP_ALGORITHM_COPY_BACKWARD_H

libcxx/include/__algorithm/copy_if.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef _LIBCPP___ALGORITHM_COPY_IF_H
10-
#define _LIBCPP___ALGORITHM_COPY_IF_H
9+
#ifndef _LIBCPP_ALGORITHM_COPY_IF_H
10+
#define _LIBCPP_ALGORITHM_COPY_IF_H
1111

1212
#include <__config>
1313
#include <__functional/identity.h>
@@ -47,4 +47,4 @@ _LIBCPP_END_NAMESPACE_STD
4747

4848
_LIBCPP_POP_MACROS
4949

50-
#endif // _LIBCPP___ALGORITHM_COPY_IF_H
50+
#endif // _LIBCPP_ALGORITHM_COPY_IF_H

0 commit comments

Comments
 (0)