Raffaello / sdl2-vga-terminal

SDL2 VGA Terminal
MIT License
6 stars 1 forks source link

[cmake] utilities #140

Closed Raffaello closed 4 years ago

Raffaello commented 4 years ago

checks, linting, compiler cache....

https://cliutils.gitlab.io/modern-cmake/chapters/features/utilities.html


Raffaello commented 4 years ago

this one seems very interesting also for the clang analysis tools aspect that still missing:

https://interrupt.memfault.com/blog/arm-cortexm-with-llvm-clang

Interrupt
Better Firmware with LLVM/Clang
An overview of how to compile an ARM Cortex-M based project with LLVM/Clang and an exploration of the neat features available in the toolchain such as static analysis to identify memory leaks and deadlocks
Raffaello commented 4 years ago

the scan-build at the moment i don't see any benefits to put it in a CI job....

Raffaello commented 4 years ago

no real use of cppcheck in ci at the moment. compiler warnings are enough.

Raffaello commented 4 years ago

clang-tidy similar to comiler warnings no real use at all.

simpler cli usage with python script: https://www.kdab.com/clang-tidy-part-1-modernize-source-code-using-c11c14/

KDAB
Clang-Tidy, part 1: Modernize your source code using C++11/C++14 - KDAB
This blog series will introduce the clang-tidy utility from the Clang/LLVM project and show how to use it to automatically refactor C++ source code and integrate with your build system, as well as how to use the tool on other platforms than Unices. Motivation: The joy of legacy code bases C++11 added a significant amount of new C++ language features …
Raffaello commented 4 years ago

cpplint could be added, if only i am able to find a way to personlize it, some linting violation i would like to be possible :godmode:


codacy is doing already some of those linting....