给makefile插件增加自动生成compile commands数据库的支持,避免无法自动配置

This commit is contained in:
NeoZng 2023-10-27 16:19:27 +08:00
parent d764e0f940
commit 276fee9352
2 changed files with 65 additions and 2 deletions

3
.gitignore vendored
View File

@ -51,5 +51,4 @@ build
./idea
.vscode/.cortex-debug.peripherals.state.json
.vscode/.cortex-debug.registers.state.json
*.jdebug*
settings.json
*.jdebug*

64
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,64 @@
{
"files.associations": {
"robot_def.h": "c",
"bsp_dwt.h": "c",
"dji_motor.h": "c",
"message_center.h": "c",
"super_cap.h": "c",
"can_comm.h": "c",
"lqr.h": "c",
"math.h": "c",
"stdint.h": "c",
"general_def.h": "c",
"lk9025.h": "c",
"arm_math.h": "c",
"bmi088driver.h": "c",
"bmi088middleware.h": "c",
"bmi088_regndef.h": "c",
"bmi088reg.h": "c",
"balance.h": "c",
"stdlib.h": "c",
"memory.h": "c",
"bsp_usart.h": "c",
"compare": "c",
"limits": "c",
"*.tcc": "c",
"type_traits": "c",
"bsp_log.h": "c",
"segger_rtt.h": "c",
"referee.h": "c",
"referee_communication.h": "c",
"vmc_project.h": "c",
"user_lib.h": "c",
"quaternionekf.h": "c",
"bsp_usb.h": "c",
"robot.h": "c",
"rm_referee.h": "c",
"stdio.h": "c",
"crc.h": "c",
"bmi088.h": "c",
"cmath": "c",
"ht04.h": "c",
"gain_table.h": "c",
"referee_task.h": "c",
"task.h": "c",
"robot_task.h": "c",
"motor_task.h": "c",
"bsp_flash.h": "c",
"bsp_iic.h": "c",
"usbd_cdc_if.h": "c",
"kf.h": "c",
"none.h": "c",
"buzzer.h": "c",
"bsp_pwm.h": "c",
"main.h": "c",
"stm32f4xx_hal_conf.h": "c",
"master_process.h": "c",
"bsp_can.h": "c",
"can.h": "c"
},
"cortex-debug.variableUseNaturalFormat": true,
"C_Cpp.default.configurationProvider": "ms-vscode.makefile-tools",
// "C_Cpp.default.compilerPath": "D:\\Msys2\\mingw64\\bin\\arm-none-eabi-gcc.exe"
"makefile.compileCommandsPath": "build/compile_commands.json"
}