Let clang-format 14 do its thing.

f/clang-format-14
Jesse Vincent 2 years ago
parent da42157c64
commit cb340e9637
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -24,7 +24,9 @@
#include "kaleidoscope/device/dygma/raise/RaiseSide.h" #include "kaleidoscope/device/dygma/raise/RaiseSide.h"
#define CRGB(r, g, b) \ #define CRGB(r, g, b) \
(cRGB) { b, g, r } (cRGB) { \
b, g, r \
}
#include "kaleidoscope/device/Base.h" #include "kaleidoscope/device/Base.h"
#include "kaleidoscope/driver/bootloader/samd/Bossac.h" #include "kaleidoscope/driver/bootloader/samd/Bossac.h"

@ -34,7 +34,9 @@ struct cRGB {
}; };
#define CRGB(r, g, b) \ #define CRGB(r, g, b) \
(cRGB) { b, g, r } (cRGB) { \
b, g, r \
}
#include "kaleidoscope/device/ATmega32U4Keyboard.h" #include "kaleidoscope/device/ATmega32U4Keyboard.h"
#include "kaleidoscope/driver/bootloader/avr/HalfKay.h" #include "kaleidoscope/driver/bootloader/avr/HalfKay.h"

@ -28,7 +28,9 @@ struct cRGB {
}; };
#define CRGB(r, g, b) \ #define CRGB(r, g, b) \
(cRGB) { b, g, r } (cRGB) { \
b, g, r \
}
#include "kaleidoscope/device/ATmega32U4Keyboard.h" #include "kaleidoscope/device/ATmega32U4Keyboard.h"
#include "kaleidoscope/driver/bootloader/avr/Caterina.h" #include "kaleidoscope/driver/bootloader/avr/Caterina.h"

@ -33,7 +33,9 @@
// IWYU pragma: no_include "kaleidoscope/KeyAddr.h" // IWYU pragma: no_include "kaleidoscope/KeyAddr.h"
#define CRGB(r, g, b) \ #define CRGB(r, g, b) \
(cRGB) { b, g, r } (cRGB) { \
b, g, r \
}
struct cRGB { struct cRGB {
uint8_t b; uint8_t b;

@ -35,7 +35,9 @@ struct cRGB {
uint8_t r; uint8_t r;
}; };
#define CRGB(r, g, b) \ #define CRGB(r, g, b) \
(cRGB) { b, g, r } (cRGB) { \
b, g, r \
}
#endif #endif
#define LED_BANKS 4 #define LED_BANKS 4

@ -22,7 +22,9 @@
#include <Arduino.h> #include <Arduino.h>
#define CRGB(r, g, b) \ #define CRGB(r, g, b) \
(cRGB) { b, g, r } (cRGB) { \
b, g, r \
}
struct cRGB { struct cRGB {
uint8_t b; uint8_t b;

@ -35,7 +35,9 @@ struct cRGB {
uint8_t r; uint8_t r;
}; };
#define CRGB(r, g, b) \ #define CRGB(r, g, b) \
(cRGB) { b, g, r } (cRGB) { \
b, g, r \
}
#endif #endif
#define LED_BANKS 4 #define LED_BANKS 4

@ -34,7 +34,7 @@ namespace plugin {
StalkerEffect::ColorComputer *StalkerEffect::variant; StalkerEffect::ColorComputer *StalkerEffect::variant;
uint16_t StalkerEffect::step_length = 50; uint16_t StalkerEffect::step_length = 50;
cRGB StalkerEffect::inactive_color = (cRGB){ cRGB StalkerEffect::inactive_color = (cRGB){
0, 0, 0}; 0, 0, 0};
StalkerEffect::TransientLEDMode::TransientLEDMode(const StalkerEffect *parent) StalkerEffect::TransientLEDMode::TransientLEDMode(const StalkerEffect *parent)
: parent_(parent), : parent_(parent),

@ -47,9 +47,11 @@
#define LEADER_SEQ(...) \ #define LEADER_SEQ(...) \
{ __VA_ARGS__, Key_NoKey } { __VA_ARGS__, Key_NoKey }
#define LEADER_DICT(...) \ #define LEADER_DICT(...) \
{ \ { \
__VA_ARGS__, { {Key_NoKey}, NULL } \ __VA_ARGS__, { \
{Key_NoKey}, NULL \
} \
} }
namespace kaleidoscope { namespace kaleidoscope {

@ -38,8 +38,10 @@
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
#ifndef SPACECADET_MAP_END #ifndef SPACECADET_MAP_END
#define SPACECADET_MAP_END \ #define SPACECADET_MAP_END \
(kaleidoscope::plugin::SpaceCadet::KeyBinding) { Key_NoKey, Key_NoKey, 0 } (kaleidoscope::plugin::SpaceCadet::KeyBinding) { \
Key_NoKey, Key_NoKey, 0 \
}
#endif #endif
constexpr Key Key_SpaceCadetEnable = Key(kaleidoscope::ranges::SC_FIRST); constexpr Key Key_SpaceCadetEnable = Key(kaleidoscope::ranges::SC_FIRST);

@ -63,7 +63,7 @@ class MatrixAddr {
//constexpr MatrixAddr(ThisType &&other) : offset_(other.offset_) {} //constexpr MatrixAddr(ThisType &&other) : offset_(other.offset_) {}
ThisType &operator=(const ThisType &) = default; ThisType &operator=(const ThisType &) = default;
ThisType &operator=(ThisType &&) = default; ThisType &operator=(ThisType &&) = default;
template<typename MatrixAddr__> template<typename MatrixAddr__>
explicit constexpr MatrixAddr(const MatrixAddr__ &other) explicit constexpr MatrixAddr(const MatrixAddr__ &other)

@ -26,7 +26,9 @@ struct cRGB {
}; };
#define CRGB(r, g, b) \ #define CRGB(r, g, b) \
(cRGB) { b, g, r } (cRGB) { \
b, g, r \
}
#endif #endif

Loading…
Cancel
Save