bump clang-format to C++ 20
Otherwise it formats some newer C++ features wrong
This commit is contained in:
parent
9ce095dad3
commit
372ea85326
2 changed files with 2 additions and 4 deletions
|
@ -12,7 +12,7 @@ DisableFormat: true
|
|||
|
||||
# Style for C++
|
||||
Language: Cpp
|
||||
Standard: c++17
|
||||
Standard: c++20
|
||||
|
||||
# base is WebKit coding style: https://webkit.org/code-style-guidelines/
|
||||
# below are only things set that diverge from this style!
|
||||
|
|
|
@ -21,9 +21,7 @@ public:
|
|||
Version(uint32_t major, uint32_t minor, uint32_t patch = 0);
|
||||
Version() = default;
|
||||
|
||||
// clang-format off
|
||||
auto operator<=> (const Version &other) const = default;
|
||||
// clang-format on
|
||||
auto operator<=>(const Version &other) const = default;
|
||||
bool isValid() const;
|
||||
uint32_t majorVersion() const;
|
||||
uint32_t minorVersion() const;
|
||||
|
|
Loading…
Reference in a new issue