Re:C++ Ecosystem: Compilers, IDEs, Tools, Testing
by imagiko on Tuesday October 08, 2019 @08:23PM
(#21198716)
I'm interested in this too! I've been looking for one that can be used with arm-gcc for cross compiling on embedded platforms. What do people use in such situations?
[ Parent
| on HN ]
Re:C++ Ecosystem: Compilers, IDEs, Tools, Testing
by account42 on Wednesday October 09, 2019 @10:32AM
(#21203620)
Clang has support for cross-compiling [1] without needing separate builds for each target so you should be able to use clang-analyzer and clang-tidy whit the right -target flag for your ARM platform.
https://clang.llvm.org/docs/CrossCompilation.html
Besides that, most bugs found by static analysis are platform independent so you should be able to use any static analyzer you get your hands on as long as your code is cross-platform.