bump clang-format to C++ 20

Otherwise it formats some newer C++ features wrong
This commit is contained in:
Xaver Hugl 2024-07-04 16:29:25 +02:00
parent 9ce095dad3
commit 372ea85326
2 changed files with 2 additions and 4 deletions

View file

@ -12,7 +12,7 @@ DisableFormat: true
# Style for C++ # Style for C++
Language: Cpp Language: Cpp
Standard: c++17 Standard: c++20
# base is WebKit coding style: https://webkit.org/code-style-guidelines/ # base is WebKit coding style: https://webkit.org/code-style-guidelines/
# below are only things set that diverge from this style! # below are only things set that diverge from this style!

View file

@ -21,9 +21,7 @@ public:
Version(uint32_t major, uint32_t minor, uint32_t patch = 0); Version(uint32_t major, uint32_t minor, uint32_t patch = 0);
Version() = default; Version() = default;
// clang-format off
auto operator<=>(const Version &other) const = default; auto operator<=>(const Version &other) const = default;
// clang-format on
bool isValid() const; bool isValid() const;
uint32_t majorVersion() const; uint32_t majorVersion() const;
uint32_t minorVersion() const; uint32_t minorVersion() const;