From 8c9c439bcbc494335aca2d8a5e7ca2ab1e59f293 Mon Sep 17 00:00:00 2001 From: Wlad Meixner Date: Mon, 26 Sep 2022 15:36:33 +0200 Subject: [PATCH] feat: add formatter --- growme/.clang-format | 31 +++++++++++++++++++++++++++++++ growme/platformio.ini | 9 ++++++++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 growme/.clang-format diff --git a/growme/.clang-format b/growme/.clang-format new file mode 100644 index 0000000..be80bdb --- /dev/null +++ b/growme/.clang-format @@ -0,0 +1,31 @@ +BasedOnStyle: Google +TabWidth: 4 +IndentWidth: 4 +UseTab: Always +ColumnLimit: 100 + +--- +Language: Cpp + +DisableFormat: false +Standard: Cpp11 + +AlignAfterOpenBracket: true +AlignConsecutiveAssignments: false +AlignConsecutiveDeclarations: false +AlignEscapedNewlinesLeft: false +AlignOperands: true +AlignTrailingComments: false +AllowAllParametersOfDeclarationOnNextLine: true +AllowShortBlocksOnASingleLine: true +AllowShortCaseLabelsOnASingleLine: true +AllowShortFunctionsOnASingleLine: Empty +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +AlwaysBreakAfterDefinitionReturnType: false +AlwaysBreakAfterReturnType: None +AlwaysBreakBeforeMultilineStrings: false +AlwaysBreakTemplateDeclarations: true +BinPackArguments: false +BinPackParameters: false +BreakBeforeBraces: Attach diff --git a/growme/platformio.ini b/growme/platformio.ini index 40875eb..d059719 100644 --- a/growme/platformio.ini +++ b/growme/platformio.ini @@ -12,7 +12,14 @@ platform = espressif32 framework = arduino, espidf monitor_speed = 115200 +lib_deps = + laurb9/StepperDriver@^1.4.0 + Nanopb +build_unflags = + -std=gnu++11 +build_flags = + -std=gnu++17 [env:esp32dev] board = esp32dev -lib_deps = laurb9/StepperDriver@^1.4.0 +monitor_filters = esp32_exception_decoder