Sonar scanner and Objective-C++

(Oleg Derevenetz) #1

Hi all,

I’m trying to verify my project which is written using Objective-C++. It looks like sonar-scanner doesn’t recognize .mm files as Objective-C++ files (in the extended debug output with -X I see that language is set to “null” for all .mm files). Whether there is support for Objective-C++ in sonar-scanner?

Thanks in advance for your help, Oleg.

(Massimo Paladin) #2

Hi @oleg-derevenetz,

we don’t support Objective-C++ as you can see in the analyzer pages for C/C++ and Objective-C, you could still try to analyze those files as Objective-C adding .mm to sonar.objc.file.suffixes property but I have no idea about the quality of the results, you can use it at your own risk:


(Oleg Derevenetz) #3

Thank you! It looks like in my case processing those files as C++ files (by adding .mm to sonar.cpp.file.suffixes) gives the best possible results.

1 Like
(Massimo Paladin) #4

Hi @oleg-derevenetz,

glad to hear that, just keep in mind that there might be some parsing errors and recovery kicking in leading to some false-positives and false-negatives in your analysis result.