diff --git a/plugins/Kaleidoscope-Hardware-Dygma-Raise/src/kaleidoscope/device/dygma/Raise.h b/plugins/Kaleidoscope-Hardware-Dygma-Raise/src/kaleidoscope/device/dygma/Raise.h index a0b4987a..b4777bfe 100644 --- a/plugins/Kaleidoscope-Hardware-Dygma-Raise/src/kaleidoscope/device/dygma/Raise.h +++ b/plugins/Kaleidoscope-Hardware-Dygma-Raise/src/kaleidoscope/device/dygma/Raise.h @@ -24,7 +24,9 @@ #include "kaleidoscope/device/dygma/raise/RaiseSide.h" #define CRGB(r, g, b) \ - (cRGB) { b, g, r } + (cRGB) { \ + b, g, r \ + } #include "kaleidoscope/device/Base.h" #include "kaleidoscope/driver/bootloader/samd/Bossac.h" diff --git a/plugins/Kaleidoscope-Hardware-EZ-ErgoDox/src/kaleidoscope/device/ez/ErgoDox.h b/plugins/Kaleidoscope-Hardware-EZ-ErgoDox/src/kaleidoscope/device/ez/ErgoDox.h index f7532e76..0d56c57a 100644 --- a/plugins/Kaleidoscope-Hardware-EZ-ErgoDox/src/kaleidoscope/device/ez/ErgoDox.h +++ b/plugins/Kaleidoscope-Hardware-EZ-ErgoDox/src/kaleidoscope/device/ez/ErgoDox.h @@ -34,7 +34,9 @@ struct cRGB { }; #define CRGB(r, g, b) \ - (cRGB) { b, g, r } + (cRGB) { \ + b, g, r \ + } #include "kaleidoscope/device/ATmega32U4Keyboard.h" #include "kaleidoscope/driver/bootloader/avr/HalfKay.h" diff --git a/plugins/Kaleidoscope-Hardware-Keyboardio-Imago/src/kaleidoscope/device/keyboardio/Imago.h b/plugins/Kaleidoscope-Hardware-Keyboardio-Imago/src/kaleidoscope/device/keyboardio/Imago.h index dd36f544..142b5d16 100644 --- a/plugins/Kaleidoscope-Hardware-Keyboardio-Imago/src/kaleidoscope/device/keyboardio/Imago.h +++ b/plugins/Kaleidoscope-Hardware-Keyboardio-Imago/src/kaleidoscope/device/keyboardio/Imago.h @@ -28,7 +28,9 @@ struct cRGB { }; #define CRGB(r, g, b) \ - (cRGB) { b, g, r } + (cRGB) { \ + b, g, r \ + } #include "kaleidoscope/device/ATmega32U4Keyboard.h" #include "kaleidoscope/driver/bootloader/avr/Caterina.h" diff --git a/plugins/Kaleidoscope-Hardware-Keyboardio-Model01/src/kaleidoscope/device/keyboardio/Model01.h b/plugins/Kaleidoscope-Hardware-Keyboardio-Model01/src/kaleidoscope/device/keyboardio/Model01.h index 8ad40ab9..54a441e9 100644 --- a/plugins/Kaleidoscope-Hardware-Keyboardio-Model01/src/kaleidoscope/device/keyboardio/Model01.h +++ b/plugins/Kaleidoscope-Hardware-Keyboardio-Model01/src/kaleidoscope/device/keyboardio/Model01.h @@ -33,7 +33,9 @@ // IWYU pragma: no_include "kaleidoscope/KeyAddr.h" #define CRGB(r, g, b) \ - (cRGB) { b, g, r } + (cRGB) { \ + b, g, r \ + } struct cRGB { uint8_t b; diff --git a/plugins/Kaleidoscope-Hardware-Keyboardio-Model01/src/kaleidoscope/driver/keyboardio/Model01Side.h b/plugins/Kaleidoscope-Hardware-Keyboardio-Model01/src/kaleidoscope/driver/keyboardio/Model01Side.h index d78da676..3caea6e0 100644 --- a/plugins/Kaleidoscope-Hardware-Keyboardio-Model01/src/kaleidoscope/driver/keyboardio/Model01Side.h +++ b/plugins/Kaleidoscope-Hardware-Keyboardio-Model01/src/kaleidoscope/driver/keyboardio/Model01Side.h @@ -35,7 +35,9 @@ struct cRGB { uint8_t r; }; #define CRGB(r, g, b) \ - (cRGB) { b, g, r } + (cRGB) { \ + b, g, r \ + } #endif #define LED_BANKS 4 diff --git a/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/device/keyboardio/Model100.h b/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/device/keyboardio/Model100.h index 05374878..7a143180 100644 --- a/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/device/keyboardio/Model100.h +++ b/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/device/keyboardio/Model100.h @@ -22,7 +22,9 @@ #include #define CRGB(r, g, b) \ - (cRGB) { b, g, r } + (cRGB) { \ + b, g, r \ + } struct cRGB { uint8_t b; diff --git a/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/driver/keyboardio/Model100Side.h b/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/driver/keyboardio/Model100Side.h index 81b3fe64..d299b894 100644 --- a/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/driver/keyboardio/Model100Side.h +++ b/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/driver/keyboardio/Model100Side.h @@ -35,7 +35,9 @@ struct cRGB { uint8_t r; }; #define CRGB(r, g, b) \ - (cRGB) { b, g, r } + (cRGB) { \ + b, g, r \ + } #endif #define LED_BANKS 4 diff --git a/plugins/Kaleidoscope-LED-Stalker/src/kaleidoscope/plugin/LED-Stalker.cpp b/plugins/Kaleidoscope-LED-Stalker/src/kaleidoscope/plugin/LED-Stalker.cpp index 5dd56185..8f1d3026 100644 --- a/plugins/Kaleidoscope-LED-Stalker/src/kaleidoscope/plugin/LED-Stalker.cpp +++ b/plugins/Kaleidoscope-LED-Stalker/src/kaleidoscope/plugin/LED-Stalker.cpp @@ -34,7 +34,7 @@ namespace plugin { StalkerEffect::ColorComputer *StalkerEffect::variant; uint16_t StalkerEffect::step_length = 50; cRGB StalkerEffect::inactive_color = (cRGB){ - 0, 0, 0}; + 0, 0, 0}; StalkerEffect::TransientLEDMode::TransientLEDMode(const StalkerEffect *parent) : parent_(parent), diff --git a/plugins/Kaleidoscope-Leader/src/kaleidoscope/plugin/Leader.h b/plugins/Kaleidoscope-Leader/src/kaleidoscope/plugin/Leader.h index d4de0447..3c9f9d2a 100644 --- a/plugins/Kaleidoscope-Leader/src/kaleidoscope/plugin/Leader.h +++ b/plugins/Kaleidoscope-Leader/src/kaleidoscope/plugin/Leader.h @@ -47,9 +47,11 @@ #define LEADER_SEQ(...) \ { __VA_ARGS__, Key_NoKey } -#define LEADER_DICT(...) \ - { \ - __VA_ARGS__, { {Key_NoKey}, NULL } \ +#define LEADER_DICT(...) \ + { \ + __VA_ARGS__, { \ + {Key_NoKey}, NULL \ + } \ } namespace kaleidoscope { diff --git a/plugins/Kaleidoscope-SpaceCadet/src/kaleidoscope/plugin/SpaceCadet.h b/plugins/Kaleidoscope-SpaceCadet/src/kaleidoscope/plugin/SpaceCadet.h index 224c1240..abcb642c 100644 --- a/plugins/Kaleidoscope-SpaceCadet/src/kaleidoscope/plugin/SpaceCadet.h +++ b/plugins/Kaleidoscope-SpaceCadet/src/kaleidoscope/plugin/SpaceCadet.h @@ -38,8 +38,10 @@ // ----------------------------------------------------------------------------- #ifndef SPACECADET_MAP_END -#define SPACECADET_MAP_END \ - (kaleidoscope::plugin::SpaceCadet::KeyBinding) { Key_NoKey, Key_NoKey, 0 } +#define SPACECADET_MAP_END \ + (kaleidoscope::plugin::SpaceCadet::KeyBinding) { \ + Key_NoKey, Key_NoKey, 0 \ + } #endif constexpr Key Key_SpaceCadetEnable = Key(kaleidoscope::ranges::SC_FIRST); diff --git a/src/kaleidoscope/MatrixAddr.h b/src/kaleidoscope/MatrixAddr.h index 9a2a7c4c..c8db88d1 100644 --- a/src/kaleidoscope/MatrixAddr.h +++ b/src/kaleidoscope/MatrixAddr.h @@ -63,7 +63,7 @@ class MatrixAddr { //constexpr MatrixAddr(ThisType &&other) : offset_(other.offset_) {} ThisType &operator=(const ThisType &) = default; - ThisType &operator=(ThisType &&) = default; + ThisType &operator=(ThisType &&) = default; template explicit constexpr MatrixAddr(const MatrixAddr__ &other) diff --git a/src/kaleidoscope/driver/led/None.h b/src/kaleidoscope/driver/led/None.h index 89d6e0dd..57d601e0 100644 --- a/src/kaleidoscope/driver/led/None.h +++ b/src/kaleidoscope/driver/led/None.h @@ -26,7 +26,9 @@ struct cRGB { }; #define CRGB(r, g, b) \ - (cRGB) { b, g, r } + (cRGB) { \ + b, g, r \ + } #endif