feat: add formatter

This commit is contained in:
Wlad Meixner 2022-09-26 15:36:33 +02:00
parent 420589a5ec
commit 8c9c439bcb
2 changed files with 39 additions and 1 deletions

31
growme/.clang-format Normal file
View File

@ -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

View File

@ -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