From 73195267cb699504189507b438052a1291c11c28 Mon Sep 17 00:00:00 2001 From: giomba Date: Mon, 10 Oct 2022 19:11:45 +0200 Subject: [PATCH] IntelliSense and formatting options. --- .clang-format | 12 ++++++++++++ .vscode/c_cpp_properties.json | 17 +++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .clang-format create mode 100644 .vscode/c_cpp_properties.json diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..4fb811b --- /dev/null +++ b/.clang-format @@ -0,0 +1,12 @@ +BasedOnStyle: LLVM +BreakBeforeBraces: Allman +SortIncludes: false +UseTab: AlignWithSpaces +TabWidth: 4 +IndentWidth: 4 +ColumnLimit: 100 +AlignConsecutiveMacros: true +AllowShortBlocksOnASingleLine: Empty +AllowShortFunctionsOnASingleLine: Empty +IndentPPDirectives: BeforeHash +PenaltyBreakAssignment: 25 diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..1346aaa --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,17 @@ +{ + "configurations": [ + { + "name": "Linux", + "includePath": [ + "${workspaceFolder}/**" + ], + "defines": [ + "" + ], + "compilerPath": "/usr/bin/arm-none-eabi-gcc", + "cStandard": "c17", + "intelliSenseMode": "linux-gcc-arm" + } + ], + "version": 4 +} \ No newline at end of file