lnls-fac / trackcpp

Particle tracking code
GNU General Public License v3.0
3 stars 3 forks source link

c++ tooling #48

Closed carneirofc closed 2 years ago

carneirofc commented 2 years ago

@xresende @anacso17 @fernandohds564 we could use these flags and tools in order to avoid wierd and hard to find bugs.

I've include some flags into the main Makefile and also a very generic .clang-tidy file.

clang-tidy is a really useful tool that is part of the llvm project. A powerful tool for static analysis. In order to use clang-tidy a compile database is required. Please check the requirements part at https://github.com/lnls-fac/trackcpp/blob/2b730b4756166a3a5ba5adcd253a15c4b94328c7/INSTALL.md#trackcpp and also the usage section at https://github.com/lnls-fac/trackcpp/blob/2b730b4756166a3a5ba5adcd253a15c4b94328c7/README.md#code-check

xresende commented 2 years ago

@xresende @anacso17 @fernandohds564 we could use these flags and tools in order to avoid wierd and hard to find bugs.

I've include some flags into the main Makefile and also a very generic .clang-tidy file.

clang-tidy is a really useful tool that is part of the llvm project. A powerful tool for static analysis. In order to use clang-tidy a compile database is required. Please check the requirements part at https://github.com/lnls-fac/trackcpp/blob/2b730b4756166a3a5ba5adcd253a15c4b94328c7/INSTALL.md#trackcpp and also the usage section at https://github.com/lnls-fac/trackcpp/blob/2b730b4756166a3a5ba5adcd253a15c4b94328c7/README.md#code-check

thanks, @carneirofc !!!