Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to static analyze C++ and Objective-C++ code?

The "Build and analyze" option doesn't seem to work for .cpp and .mm files. I tried "clang --analyze" on individual files without any standard #includes and it works well. However I'm not able to run it on my Xcode project. I couldn't figure out a way to make clang find the standard #includes like even UIKit.h. Any clues?

like image 342
Plumenator Avatar asked May 12 '10 07:05

Plumenator


Video Answer


1 Answers

clang's C++ support is not complete yet clang web site

Apple's version is more explicit clang man page

Clang currently does not have C++ support
like image 114
mmmmmm Avatar answered Oct 08 '22 14:10

mmmmmm