Skip to content
Snippets Groups Projects
Commit d2aeac58 authored by Damiano Amatruda's avatar Damiano Amatruda
Browse files

[SBS] Allow to edit and add support for clang-tidy

- SBS wrapper script now requests CMake to create file
  'compile_commands.json', which is used by clang-tidy and
  IntelliSense (VSCode). It could also be used by Cppcheck, but
  currently Cppcheck checks files with also options of targets excluded
  from 'all', therefore being much more slower.
- clang-tidy is supported by using implicit definitions and implicit
  include directories of arm-miosix-eabi-g++. However, clang-tidy
  outputs errors due to Miosix using CMSIS headers that do not support
  Clang.
- Cppcheck is no longer quiet, in order to monitor progress.
- Script arguments are parsed in alphabetical order.
- Lint tools are reordered based on duration and priority.
- New option '-e/--edit' allows clang-tidy and clang-format to
  automatically fix the code by editing files in-place.
- New option '--clang-tidy' allows to use clang-tidy (it is not run by
  default).
- Help message is reorganized.
parent a10e35c9
Branches
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment