bump clang-format to C++ 20

Otherwise it formats some newer C++ features wrong
wilder/Plasma/6.2
Xaver Hugl 2 years ago
parent 9ce095dad3
commit 372ea85326
  1. 2
      .clang-format
  2. 4
      src/utils/version.h

@ -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…
Cancel
Save