Skip to content

Commit 2acccf6

Browse files
authored
[Clang] Update value for __cpp_implicit_move (#84216) (#84228)
Fixes #84216
1 parent 4b70d17 commit 2acccf6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

clang/lib/Frontend/InitPreprocessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts,
736736
}
737737
// C++23 features.
738738
if (LangOpts.CPlusPlus23) {
739-
Builder.defineMacro("__cpp_implicit_move", "202011L");
739+
Builder.defineMacro("__cpp_implicit_move", "202207L");
740740
Builder.defineMacro("__cpp_size_t_suffix", "202011L");
741741
Builder.defineMacro("__cpp_if_consteval", "202106L");
742742
Builder.defineMacro("__cpp_multidimensional_subscript", "202211L");

clang/test/Lexer/cxx-features.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#endif
4646

4747

48-
#if check(implicit_move, 0, 0, 0, 0, 0, 202011, 202011)
48+
#if check(implicit_move, 0, 0, 0, 0, 0, 202207, 202207)
4949
#error "wrong value for __cpp_implicit_move"
5050
#endif
5151

clang/test/SemaCXX/cxx2b-p2266-disable-with-msvc-compat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#if __INCLUDE_LEVEL__ == 0
1111

12-
#if __cpluscplus > 202002L && __cpp_implicit_move < 202011L
12+
#if __cpluscplus > 202002L && __cpp_implicit_move < 202207L
1313
#error "__cpp_implicit_move not defined correctly"
1414
#endif
1515

0 commit comments

Comments
 (0)