<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Basil Shkara - Latest Comments in Using the LLVM/Clang Static Analyzer for iPhone apps</title><link>http://basilshkara.disqus.com/</link><description></description><atom:link href="https://basilshkara.disqus.com/using_the_llvmclang_static_analyzer_for_iphone_apps/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 11 Nov 2009 05:41:56 -0000</lastBuildDate><item><title>Re: Using the LLVM/Clang Static Analyzer for iPhone apps</title><link>http://www.neat.io/posts/2009/01/06/using-the-llvm-clang-static-analyzer-for-iphone-apps.html#comment-22701592</link><description>&lt;p&gt;scan-build -k -V xcodebuild&lt;br&gt;-bash: scan-build: command not found&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nonoDream</dc:creator><pubDate>Wed, 11 Nov 2009 05:41:56 -0000</pubDate></item><item><title>Re: Using the LLVM/Clang Static Analyzer for iPhone apps</title><link>http://www.neat.io/posts/2009/01/06/using-the-llvm-clang-static-analyzer-for-iphone-apps.html#comment-21856825</link><description>&lt;p&gt;Hi,&lt;br&gt;I had same problem, i.e. got error like:&lt;/p&gt;&lt;p&gt;scan-build: Removing directory '/var/folders/x2/x2PXNw6pE7O8Zr7cBMzy1U+++TI/-Tmp-/scan-build-2009-04-10-1' because it contains no reports.&lt;/p&gt;&lt;p&gt;After investigating it, in my case, this was happening because of either one of two reasons:&lt;/p&gt;&lt;p&gt;Reason 1 - I had a compilation error in my code. When I fixed the compilation error then it worked.&lt;/p&gt;&lt;p&gt;Reason 2 - The scan-build analysed my code and I had no actual errors.&lt;/p&gt;&lt;p&gt;So in my case, while my code compiled and while I had memory leaks in my code, the analyser worked and I got the web page pop up with the results. Otherwise I got something like the error listed above in the terminal window.&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Adams</dc:creator><pubDate>Wed, 04 Nov 2009 09:46:07 -0000</pubDate></item><item><title>Re: Using the LLVM/Clang Static Analyzer for iPhone apps</title><link>http://www.neat.io/posts/2009/01/06/using-the-llvm-clang-static-analyzer-for-iphone-apps.html#comment-15007988</link><description>&lt;p&gt;I just found my own answer:&lt;/p&gt;&lt;p&gt;THIS WORKED:&lt;/p&gt;&lt;p&gt;scan-build -k -V xcodebuild -configuration Debug -sdk iphonesimulator3.0&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">cmate</dc:creator><pubDate>Tue, 18 Aug 2009 09:20:34 -0000</pubDate></item><item><title>Re: Using the LLVM/Clang Static Analyzer for iPhone apps</title><link>http://www.neat.io/posts/2009/01/06/using-the-llvm-clang-static-analyzer-for-iphone-apps.html#comment-15007779</link><description>&lt;p&gt;Is clang working for anyone else when analyzing a project that contains a 3.0 library such as MessageUI?&lt;/p&gt;&lt;p&gt;I keep getting an error "MessageUI/MessageUI.h: No such file or directory".&lt;/p&gt;&lt;p&gt;It builds fine if I just do an 'xcodebuild' or build within xcode.&lt;/p&gt;&lt;p&gt;I have tried setting the basesdk for all to 2.2, and I have tried :&lt;/p&gt;&lt;p&gt;scan-build -k -V xcodebuild -configuration Debug -sdk iphonesimulator2.2&lt;/p&gt;&lt;p&gt;scan-build -k -V xcodebuild -configuration Debug -sdk iphonesimulator2.1&lt;/p&gt;&lt;p&gt;scan-build -k -V xcodebuild -configuration Debug&lt;/p&gt;&lt;p&gt;scan-build -k -V xcodebuild&lt;/p&gt;&lt;p&gt;Doing some searches it seems like it may have to do witht the fact that this is a 3.0 library ?&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">cmate</dc:creator><pubDate>Tue, 18 Aug 2009 09:12:34 -0000</pubDate></item><item><title>Re: Using the LLVM/Clang Static Analyzer for iPhone apps</title><link>http://www.neat.io/posts/2009/01/06/using-the-llvm-clang-static-analyzer-for-iphone-apps.html#comment-13752775</link><description>&lt;p&gt;i have installed the checker.. folder in my project - but scan-build does not start in the terminal ? Why&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rolf</dc:creator><pubDate>Fri, 31 Jul 2009 15:13:28 -0000</pubDate></item><item><title>Re: Using the LLVM/Clang Static Analyzer for iPhone apps</title><link>http://www.neat.io/posts/2009/01/06/using-the-llvm-clang-static-analyzer-for-iphone-apps.html#comment-12732722</link><description>&lt;p&gt;it s showing same  : Code Signing Identity 'iPhone Developer' does not match any code-signing certificate in your keychain.  Once added to the keychain, touch a file or clean the project to continue. i did same as u explained above.please help me to test &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">banoidas</dc:creator><pubDate>Thu, 16 Jul 2009 02:56:41 -0000</pubDate></item><item><title>Re: Using the LLVM/Clang Static Analyzer for iPhone apps</title><link>http://www.neat.io/posts/2009/01/06/using-the-llvm-clang-static-analyzer-for-iphone-apps.html#comment-12496988</link><description>&lt;p&gt;I had the same problem I added the extra parameters after xcodebuild:&lt;br&gt;scan-build -k -V xcodebuild -configuration Debug -sdk iphonesimulator2.1&lt;/p&gt;&lt;p&gt;Found this here:&lt;a href="http://forums.macrumors.com/showthread.php?t=737768" rel="nofollow noopener" target="_blank" title="http://forums.macrumors.com/showthread.php?t=737768"&gt;http://forums.macrumors.com...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">calbot</dc:creator><pubDate>Sat, 11 Jul 2009 02:23:30 -0000</pubDate></item><item><title>Re: Using the LLVM/Clang Static Analyzer for iPhone apps</title><link>http://www.neat.io/posts/2009/01/06/using-the-llvm-clang-static-analyzer-for-iphone-apps.html#comment-10438078</link><description>&lt;p&gt;Also check on your Project info &amp;gt; Configurations tab (at the very bottom) that you are set to Debug in the "Command-line builds use:" option&lt;/p&gt;&lt;p&gt;Nice article&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jota</dc:creator><pubDate>Wed, 03 Jun 2009 13:58:34 -0000</pubDate></item><item><title>Re: Using the LLVM/Clang Static Analyzer for iPhone apps</title><link>http://www.neat.io/posts/2009/01/06/using-the-llvm-clang-static-analyzer-for-iphone-apps.html#comment-9837481</link><description>&lt;p&gt;Thanks a lot for this posting.  It helped a lot getting clang to work.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Albert Jordan</dc:creator><pubDate>Sat, 23 May 2009 17:44:50 -0000</pubDate></item><item><title>Re: Using the LLVM/Clang Static Analyzer for iPhone apps</title><link>http://www.neat.io/posts/2009/01/06/using-the-llvm-clang-static-analyzer-for-iphone-apps.html#comment-8943384</link><description>&lt;p&gt;Just what I needed, thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lance Weber</dc:creator><pubDate>Sat, 02 May 2009 18:50:29 -0000</pubDate></item><item><title>Re: Using the LLVM/Clang Static Analyzer for iPhone apps</title><link>http://www.neat.io/posts/2009/01/06/using-the-llvm-clang-static-analyzer-for-iphone-apps.html#comment-8107748</link><description>&lt;p&gt;Yes I think that is my problem clang is not analyzing those files.&lt;br&gt;This is a pain as I am using some C++ mixed with objective C&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">benoitcerrina</dc:creator><pubDate>Sun, 12 Apr 2009 23:51:03 -0000</pubDate></item><item><title>Re: Using the LLVM/Clang Static Analyzer for iPhone apps</title><link>http://www.neat.io/posts/2009/01/06/using-the-llvm-clang-static-analyzer-for-iphone-apps.html#comment-8107670</link><description>&lt;p&gt;Do you know if clang works on objectiveC++&lt;br&gt;Most of my source files are .mm that may be the problem?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">benoitcerrina</dc:creator><pubDate>Sun, 12 Apr 2009 23:44:55 -0000</pubDate></item><item><title>Re: Using the LLVM/Clang Static Analyzer for iPhone apps</title><link>http://www.neat.io/posts/2009/01/06/using-the-llvm-clang-static-analyzer-for-iphone-apps.html#comment-8107653</link><description>&lt;p&gt;Yes it is in my build path.&lt;br&gt;Moreover I did add some errors (in particular the exact one you suggested) and it didn't change the result.  Nothing is reported and the directory is removed.&lt;/p&gt;&lt;p&gt;I also have to say that on toy projects it work it is just in my real project where it doesn't&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">benoitcerrina</dc:creator><pubDate>Sun, 12 Apr 2009 23:43:05 -0000</pubDate></item><item><title>Re: Using the LLVM/Clang Static Analyzer for iPhone apps</title><link>http://www.neat.io/posts/2009/01/06/using-the-llvm-clang-static-analyzer-for-iphone-apps.html#comment-8052238</link><description>&lt;p&gt;Ahh cool. Good tip :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bshkara</dc:creator><pubDate>Fri, 10 Apr 2009 08:59:18 -0000</pubDate></item><item><title>Re: Using the LLVM/Clang Static Analyzer for iPhone apps</title><link>http://www.neat.io/posts/2009/01/06/using-the-llvm-clang-static-analyzer-for-iphone-apps.html#comment-8052185</link><description>&lt;p&gt;Is scan-build in your path?  I've had problems in the past when running it by specifying relative paths.&lt;/p&gt;&lt;p&gt;Otherwise, you can try introducing a bug into your application.&lt;/p&gt;&lt;p&gt;E.g. `NSNumber *number = [[NSNumber alloc] initWithInt:0];` and don't `release` it. That should introduce 2 bugs: a dead initialization, and a memory leak.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bshkara</dc:creator><pubDate>Fri, 10 Apr 2009 08:54:50 -0000</pubDate></item><item><title>Re: Using the LLVM/Clang Static Analyzer for iPhone apps</title><link>http://www.neat.io/posts/2009/01/06/using-the-llvm-clang-static-analyzer-for-iphone-apps.html#comment-8051477</link><description>&lt;p&gt;unfortunately when I run this on my project I receive no report and the last line is &lt;br&gt;scan-build: Removing directory '/var/folders/x2/x2PXNw6pE7O8Zr7cBMzy1U+++TI/-Tmp-/scan-build-2009-04-10-1' because it contains no reports.&lt;br&gt;can someone give me an example of the type of errors clang finds?  I am really surprised that it didn't find any in my project but I'd like to try to add explicitly errors  to verify that it works&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Benoit Cerrina</dc:creator><pubDate>Fri, 10 Apr 2009 07:50:43 -0000</pubDate></item><item><title>Re: Using the LLVM/Clang Static Analyzer for iPhone apps</title><link>http://www.neat.io/posts/2009/01/06/using-the-llvm-clang-static-analyzer-for-iphone-apps.html#comment-8048999</link><description>&lt;p&gt;Or use scan-build -k xcodebuild -configuration Debug -sdk iphonesimulator2.2 rather than changing the project :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">millenomi</dc:creator><pubDate>Fri, 10 Apr 2009 03:22:11 -0000</pubDate></item><item><title>Re: Using the LLVM/Clang Static Analyzer for iPhone apps</title><link>http://www.neat.io/posts/2009/01/06/using-the-llvm-clang-static-analyzer-for-iphone-apps.html#comment-7091501</link><description>&lt;p&gt;very helpful&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">anonymous</dc:creator><pubDate>Tue, 10 Mar 2009 23:09:13 -0000</pubDate></item><item><title>Re: Using the LLVM/Clang Static Analyzer for iPhone apps</title><link>http://www.neat.io/posts/2009/01/06/using-the-llvm-clang-static-analyzer-for-iphone-apps.html#comment-6556208</link><description>&lt;p&gt;That message indicates that the static analyzer could not detect any problems with your code.  Perhaps try introducing a bug in your application.  E.g. `NSNumber *number = [[NSNumber alloc] initWithInt:0];` and don't `release` it.  That should introduce 2 bugs: a dead initialization, and a memory leak.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bshkara</dc:creator><pubDate>Tue, 24 Feb 2009 01:58:05 -0000</pubDate></item></channel></rss>