Embarcadero RAD Studio project analysis with clang analyzer

I would like to know if it is possible to analyze the Embarcadero RAD Studio C ++ project using the Clang Static Analyzer . As far as I understand, I need a make file or something like that and the ability to build a project with clang. But Embarcadero uses its own C ++ extension, so the code cannot be compiled with clang.

If analysis is possible (at least for individual files), it would be nice if someone posted a sequence of steps, which I need to do.

+5
source share
2 answers

You can try CppDepend , which use Clang and Clang-Tidy, to report all the problems they reported.

However, you must use the BuildMonitor tool to intercept compilation commands and links before analyzing it with CppDepend.

+1
source

If the clang static analyzer is a tough requirement, I don't know about a solution. But if static analysis in general is your requirement, then GrammaTech CodeSonar supports Embarcadero.

0
source

Source: https://habr.com/ru/post/1273842/


All Articles