llvmclang

Building iPhone Code using xcodebuild and running LLVM/Clang Static Analyzer

I followed the steps here but i'm unable to run static analyzer on my project: Finding memory leaks with the LLVM/Clang Static Analyzer When i try to run xcodebuild on my project (1. Open Terminal, 2. Go to Project Directly, 3. > xcodebuild), i get this error: === BUILDING NATIVE TARGET XProject OF PROJECT XProject WITH THE DEFAULT...

llvm vs c-- ; how can llvm fundamentally not be better for haskell than c-- ?

I've been excited about llvm being low enough to model any system, and saw it as promising that Apple was adopting it; but then again Apple doesn't specifically support Haskell; and, some think that Haskell would be better off with c-- : That LLVM'ers haven't solved the problem of zero-overhead garbage collection isn't too surpris...

Using Clang Static Analyzer from within XCode

Since there is no Xcode script variable for "current project directory," how can you create a script menu item to run the Clang Static Analyzer on your current project from Xcode? ...

-forwardInvocation works with Clang - LLVM but not with GCC

The following code implements an NSProxy subclass which forwards methods to an NSNumber instance. However when calling [nsproxy floatValue] I get 0.0 under GCC 4.2. Under LLVM-Clang I get the correct answer 42.0. Any idea what is going on? (by the way this is running under Garbage Collection) -(id) init; { _result = [NSNumber nu...

LLVM Clang 2.6 and Xcode 3.2!

So, I've just downloaded the LLVM Clang (2.6) binaries. Mac OS X 10.6 comes with Clang 1.0.Do you know how to integrate a later version of Clang with the Xcode 3.2.x IDE? Just overwriting files seems a little bit risky. ...

llvm-clang: incremental or online parser?

Is there anyway to use the llvm-clang parser in an incremental/online manner? Say I'm writing an editor and I want to be able to parse the C++ code I have in front of me. I don't want to write my own hacked up parser. I'd like to use something full featured, like llvm-clang. Is there an easy way to hijack the llvm-clang parser? (And ...

llvm clang 2.6: "not using the clang compiler for C++ inputs "

Hello LLVM 2.6 + clang. Trying to compile C++ file and get: clang: warning: not using the clang compiler for C++ inputs How can I start clang in C++ mode? ...

Enable LLVM + Clang in Xcode new project causes linking errors

I've done a complete clean uninstall of XCode and deleted the prefs and deleted complete /Developer folder and reinstalled XCode again. I create a new Cocoa application, go over to Target, doing a "Get info" in the target and enable "C / C++ compiler version" to "LLVM compiler 1.0.2" and press Build. I get: ld: warning: directory '/us...

Problem with Core Data, protocols, and readwrite vs. readonly property declarations

I'm running into an odd quirk involving Core Data, a declared protocol, and perhaps the LLVM 1.5 compiler. Here's the situation. I have a Core Data model that among others has two classes, IPContainer and IPEvent, with IPContainer being the parent entity of IPEvent. Each entity has a custom class in the project for it, created using m...

Clang TOT, huh?

Hey, I wanted to try out some new features in Clang, and I was referred to Clang TOT. Now this might be an obvious question by what the heck is Clang TOT. TOT must be some acronym that I am not familiar with. Can anyone enlighten me? ...

What version clang is in Xcode 3?

How do I figure which version of clang that Xcode use? It's 1.5 in Xcode, yet the official llvm-clang is 2.7. Are they the same? ...

How do I find all memory allocations in an llvm ir code file?

I tried to compile this snippet of C++ code: void FuncTest() { int* a = new int; int* b = new int[2]; } using: clang test.cpp -S -emit-llvm -o - > test.llvm and obtained this: define void @_Z8FuncTestv() { entry: %a = alloca i32*, align 4 %b = alloca i32*, align 4 %call = call noalias i8* @_Znwj(i32 4) %0 = bitcast...