π.clang-tidy support for STM32Cube clangd
Hey --
Β We would like to include a minimal version of .clang-tidy in our VS Code STM32 project. We use theΒ STM32Cube clangd extension (through theΒ STM32CubeIDE for Visual Studio Code Extension Pack). From our research it appears support for .clang-tidy is not currently included the STM32 fork of clangd. This request is to include that support.π
Β Our expectation is that by adding a .clang-tidy file to the project root and --clang-tidy to the .vscode/settings.json (snippet shown below) we would begin to see output in the βProblemsβ tab and squiggles in the code base as we edit.
~DigitalNomad
{root}.vscode/settings.json (Win11)
"stm32cube-ide-clangd.arguments": [
Β Β Β Β "starm-clangd",
Β Β Β Β "--compile-commands-dir=${workspaceFolder}/build/Debug",
Β Β Β Β "--clang-tidy",
"--enable-config",
"--background-index",
"--completion-style=detailed",
"--header-insertion=never",
Β Β Β Β "--query-driver=C:/ST/STM32CubeCLT_1.22.0/GNU-tools-for-STM32/bin/arm-none-eabi-gcc.exe"
]{root}.clang-tidy:
---
Checks: >
Β -*,
Β bugprone-*,
Β readability-*,
Β clang-analyzer-*,
Β misc-*
WarningsAsErrors: ''
HeaderFilterRegex: '.*'Β
