Skip to content

Commit 6be4cfc

Browse files
committed
chore(tidy): clang-format fix for single line blocks
1 parent 522225c commit 6be4cfc

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ AlignTrailingComments:
4444
AllowAllArgumentsOnNextLine: true
4545
AllowAllParametersOfDeclarationOnNextLine: true
4646
AllowBreakBeforeNoexceptSpecifier: Never
47-
AllowShortBlocksOnASingleLine: Never
47+
AllowShortBlocksOnASingleLine: true
4848
AllowShortCaseLabelsOnASingleLine: false
4949
AllowShortCompoundRequirementOnASingleLine: true
5050
AllowShortEnumsOnASingleLine: true

src/Wippersnapper.h

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,24 +49,16 @@
4949
// Define actual debug output functions when necessary.
5050
#ifdef WS_DEBUG
5151
#define WS_DEBUG_PRINT(...) \
52-
{ \
53-
WS_PRINTER.print(__VA_ARGS__); \
54-
} ///< Prints debug output.
52+
{ WS_PRINTER.print(__VA_ARGS__); } ///< Prints debug output.
5553
#define WS_DEBUG_PRINTLN(...) \
56-
{ \
57-
WS_PRINTER.println(__VA_ARGS__); \
58-
} ///< Prints line from debug output.
54+
{ WS_PRINTER.println(__VA_ARGS__); } ///< Prints line from debug output.
5955
#define WS_DEBUG_PRINTHEX(...) \
60-
{ \
61-
WS_PRINTER.print(__VA_ARGS__, HEX); \
62-
} ///< Prints debug output.
56+
{ WS_PRINTER.print(__VA_ARGS__, HEX); } ///< Prints debug output.
6357
#else
6458
#define WS_DEBUG_PRINT(...) \
65-
{ \
66-
} ///< Prints debug output
59+
{} ///< Prints debug output
6760
#define WS_DEBUG_PRINTLN(...) \
68-
{ \
69-
} ///< Prints line from debug output.
61+
{} ///< Prints line from debug output.
7062
#endif
7163

7264
#define WS_DELAY_WITH_WDT(timeout) \

0 commit comments

Comments
 (0)