Skip to content

Commit

Permalink
make format
Browse files Browse the repository at this point in the history
  • Loading branch information
obra committed Nov 13, 2023
1 parent d183f49 commit 1ebc1a3
Show file tree
Hide file tree
Showing 12 changed files with 40 additions and 16 deletions.
8 changes: 6 additions & 2 deletions plugins/Kaleidoscope-Devel-ArduinoTrace/src/ArduinoTrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,14 @@ struct Printer {
#define ARDUINOTRACE_PRINT(id, file, prefix, content) \
{ \
struct __filename { \
constexpr static char const *data() { return file; } \
constexpr static char const *data() { \
return file; \
} \
}; \
struct __prefix { \
constexpr static char const *data() { return prefix; } \
constexpr static char const *data() { \
return prefix; \
} \
}; \
ArduinoTrace::Printer<__filename, __prefix> __tracer(ARDUINOTRACE_SERIAL, \
content); \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
#include <Arduino.h>

#define CRGB(r, g, b) \
(cRGB) { b, g, r }
(cRGB) { \
b, g, r \
}

struct cRGB {
uint8_t b;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions plugins/Kaleidoscope-Leader/src/kaleidoscope/plugin/Leader.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@
#include "kaleidoscope/plugin.h" // for Plugin

#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);
Expand Down
2 changes: 1 addition & 1 deletion src/kaleidoscope/MatrixAddr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<typename MatrixAddr__>
explicit constexpr MatrixAddr(const MatrixAddr__ &other)
Expand Down
4 changes: 3 additions & 1 deletion src/kaleidoscope/driver/led/None.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ struct cRGB {
};

#define CRGB(r, g, b) \
(cRGB) { b, g, r }
(cRGB) { \
b, g, r \
}

#endif

Expand Down

0 comments on commit 1ebc1a3

Please sign in to comment.