build(format): 加入 clang-format 配置

This commit is contained in:
GuanxiTong committed 2026-11-18 10:29:23 +08:00
1 parent ef128e6776
commit 7723c5d83a
6 files changed
+77

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
{
"configurations": [
{
"name": "Simba-Titan",
"compilerPath": "C:/Users/Guanxi/AppData/Local/Keil_v5/ARM/ARMCLANG/bin/armclang.exe",
"compilerArgs": [
"--target=arm-arm-none-eabi",
"-mcpu=cortex-m7",
"-mfpu=fpv5-d16",
"-mfloat-abi=hard"
],
"intelliSenseMode": "windows-clang-arm",
"cStandard": "c11",
"cppStandard": "c++17",
"includePath": [
"${workspaceFolder}/Core/Inc",
"${workspaceFolder}/Drivers/STM32H7xx_HAL_Driver/Inc",
"${workspaceFolder}/Drivers/STM32H7xx_HAL_Driver/Inc/Legacy",
"${workspaceFolder}/Drivers/CMSIS/Device/ST/STM32H7xx/Include",
"${workspaceFolder}/Drivers/CMSIS/Include",
"${workspaceFolder}/Drivers/CMSIS/RTOS2/Include",
"${workspaceFolder}/Middlewares/Third_Party/FreeRTOS/Source/include",
"${workspaceFolder}/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2",
"${workspaceFolder}/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F",
"${workspaceFolder}/Middlewares/ST/ARM/DSP/Inc"
],
"defines": [
"USE_PWR_LDO_SUPPLY",
"USE_HAL_DRIVER",
"STM32H723xx",
"ARM_MATH_CM7",
"__FPU_PRESENT=1U"
]
}
],
"version": 4
}
+14
View File
@@ -0,0 +1,14 @@
{
"C_Cpp.formatting": "clangFormat",
"C_Cpp.clang_format_style": "file",
"C_Cpp.clang_format_fallbackStyle": "Google",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "modificationsIfAvailable",
"editor.defaultFormatter": "ms-vscode.cpptools",
"[c]": {
"editor.defaultFormatter": "ms-vscode.cpptools"
},
"files.associations": {
"*.h": "c"
}
}