Skip to content

Commit 8974474

Browse files
committed
Fix spaceship operator clang format wrong rule
1 parent c4cf687 commit 8974474

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ SpacesInCStyleCastParentheses: false
6767
SpacesInContainerLiterals: true
6868
SpacesInParentheses: false
6969
SpacesInSquareBrackets: false
70-
Standard: "c++17"
70+
Standard: "c++20"
7171
TabWidth: 4
7272
UseTab: Never
7373
WhitespaceSensitiveMacros: ['YUP_NTH_ARG_', 'EM_ASM', 'EM_JS', 'EM_ASM_INT', 'EM_ASM_DOUBLE', 'EM_ASM_PTR', 'MAIN_THREAD_EM_ASM', 'MAIN_THREAD_EM_ASM_INT', 'MAIN_THREAD_EM_ASM_DOUBLE', 'MAIN_THREAD_EM_ASM_DOUBLE', 'MAIN_THREAD_ASYNC_EM_ASM']

modules/yup_graphics/graphics/yup_Color.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ class YUP_API Color
108108
}
109109

110110
/** Spaceship operator. */
111-
constexpr auto operator<= > (const Color& other) const noexcept
111+
constexpr auto operator<=> (const Color& other) const noexcept
112112
{
113-
return data <= > other.data;
113+
return data <=> other.data;
114114
}
115115

116116
//==============================================================================

0 commit comments

Comments
 (0)