αλεχολυτ
αλεχολυτ

Reputation: 5050

Analyze Embarcadero RAD Studio project with clang analyzer

I would like to know is it possible to analyze Embarcadero RAD Studio C++ project with Clang Static Analyzer. As far as I understand I need a makefile or something any and ability to build the project with clang. But Embarcadero uses it's own C++ extension, so code can't be compiled with clang.

If analyzing is possible (at least for separate files) it would be good if someone post a sequence of steps what I need to do.

Upvotes: 8

Views: 797

Answers (2)

Niki
Niki

Reputation: 616

Just found out that since RadStudio XE2, it has integrated C++ Analyzer.

From my initial tests, in RadStudio 10.2 it seems to be based on Clang Static Analyzer (not 100% sure)

Here is video instructions for XE2 https://edn.embarcadero.com/article/41862 In Tokyo you access it from menu View->Tool Windows->C++ Analyzer.

My preliminary results are: very slow but pretty helpful results with lots of possible tweaking.

Upvotes: 2

markhermeling
markhermeling

Reputation: 86

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

Upvotes: 0

Related Questions