How to static analysis of C ++ and Objective-C ++ code?

The Build and Analyze option does not seem to work for .cpp and .mm files. I tried "clang -analyze" in separate files without any standard #includes, and it works well. However, I cannot run it in my Xcode project. I could not figure out how to get clang to find the standard #includes, like UIKit.h. Any clues?

+6
xcode clang static-analysis objective-c ++
source share
2 answers

clang C ++ support pending clang website

Apple version more explicit clang man page

Clang does not currently support C ++
+1
source share

One way is to create symbolic links to Frameworks present in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.2.sdk/System/Library/Frameworks/XXX.framework/Headers, and point clang to symbolic links using option -I.

+1
source share

All Articles