Skip to content

Commit 191a05b

Browse files
committed
Fix clang-tidy issues the right way
1 parent 8c0f694 commit 191a05b

File tree

6 files changed

+2
-10
lines changed

6 files changed

+2
-10
lines changed

libcxx/include/ccomplex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,11 @@
2626
#if _LIBCPP_STD_VER >= 20
2727

2828
using __standard_header_ccomplex _LIBCPP_DEPRECATED_("removed in C++20. Include <complex> instead.") = void;
29-
// NOLINTNEXTLINE(clang-diagnostic-deprecated-declarations)
3029
using __use_standard_header_ccomplex = __standard_header_ccomplex;
3130

3231
#elif _LIBCPP_STD_VER >= 17
3332

3433
using __standard_header_ccomplex _LIBCPP_DEPRECATED_("Include <complex> instead.") = void;
35-
// NOLINTNEXTLINE(clang-diagnostic-deprecated-declarations)
3634
using __use_standard_header_ccomplex = __standard_header_ccomplex;
3735

3836
#endif

libcxx/include/ciso646

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#if _LIBCPP_STD_VER >= 20
2525

2626
using __standard_header_ciso646 _LIBCPP_DEPRECATED_("removed in C++20. Include <version> instead.") = void;
27-
// NOLINTNEXTLINE(clang-diagnostic-deprecated-declarations)
2827
using __use_standard_header_ciso646 = __standard_header_ciso646;
2928

3029
#endif

libcxx/include/cstdalign

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,11 @@ Macros:
4343
#if _LIBCPP_STD_VER >= 20
4444

4545
using __standard_header_cstdalign _LIBCPP_DEPRECATED_("removed in C++20.") = void;
46-
// NOLINTNEXTLINE(clang-diagnostic-deprecated-declarations)
4746
using __use_standard_header_cstdalign = __standard_header_cstdalign;
4847

4948
#elif _LIBCPP_STD_VER >= 17
5049

5150
using __standard_header_cstdalign _LIBCPP_DEPRECATED = void;
52-
// NOLINTNEXTLINE(clang-diagnostic-deprecated-declarations)
5351
using __use_standard_header_cstdalign = __standard_header_cstdalign;
5452

5553
#endif

libcxx/include/cstdbool

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,11 @@ Macros:
3131
#if _LIBCPP_STD_VER >= 20
3232

3333
using __standard_header_cstdbool _LIBCPP_DEPRECATED_("removed in C++20.") = void;
34-
// NOLINTNEXTLINE(clang-diagnostic-deprecated-declarations)
3534
using __use_standard_header_cstdbool = __standard_header_cstdbool;
3635

3736
#elif _LIBCPP_STD_VER >= 17
3837

3938
using __standard_header_cstdbool _LIBCPP_DEPRECATED = void;
40-
// NOLINTNEXTLINE(clang-diagnostic-deprecated-declarations)
4139
using __use_standard_header_cstdbool = __standard_header_cstdbool;
4240

4341
#endif

libcxx/include/ctgmath

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,11 @@
2828
#if _LIBCPP_STD_VER >= 20
2929

3030
using __standard_header_ctgmath _LIBCPP_DEPRECATED_("removed in C++20. Include <cmath> and <complex> instead.") = void;
31-
// NOLINTNEXTLINE(clang-diagnostic-deprecated-declarations)
3231
using __use_standard_header_ctgmath = __standard_header_ctgmath;
3332

3433
#elif _LIBCPP_STD_VER >= 17
3534

3635
using __standard_header_ctgmath _LIBCPP_DEPRECATED_("Include <cmath> and <complex> instead.") = void;
37-
// NOLINTNEXTLINE(clang-diagnostic-deprecated-declarations)
3836
using __use_standard_header_ctgmath = __standard_header_ctgmath;
3937

4038
#endif

libcxx/test/libcxx/clang_tidy.gen.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
import sys
1717
sys.path.append(sys.argv[1])
18-
from libcxx.header_information import lit_header_restrictions, public_headers
18+
from libcxx.header_information import lit_header_restrictions, lit_header_undeprecations, public_headers
1919

2020
for header in public_headers:
2121
print(f"""\
@@ -30,6 +30,7 @@
3030
// UNSUPPORTED: clang-17
3131
3232
{lit_header_restrictions.get(header, '')}
33+
{lit_header_undeprecations.get(header, '')}
3334
3435
// TODO: run clang-tidy with modules enabled once they are supported
3536
// RUN: %{{clang-tidy}} %s --warnings-as-errors=* -header-filter=.* --checks='-*,libcpp-*' --load=%{{test-tools-dir}}/clang_tidy_checks/libcxx-tidy.plugin -- %{{compile_flags}} -fno-modules

0 commit comments

Comments
 (0)