<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Finding Memory Leaks With The LLVM/Clang Static Analyzer</title>
	<atom:link href="http://www.fruitstandsoftware.com/blog/2008/08/finding-memory-leaks-with-the-llvmclang-static-analyzer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fruitstandsoftware.com/blog/2008/08/finding-memory-leaks-with-the-llvmclang-static-analyzer/</link>
	<description></description>
	<lastBuildDate>Sun, 17 Jan 2010 17:14:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Michael</title>
		<link>http://www.fruitstandsoftware.com/blog/2008/08/finding-memory-leaks-with-the-llvmclang-static-analyzer/comment-page-1/#comment-45</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Mon, 14 Dec 2009 14:12:34 +0000</pubDate>
		<guid isPermaLink="false">http://fruitstandsoftware.com/blog/?p=15#comment-45</guid>
		<description>Brett,

I&#039;m afraid that I&#039;m in the dark on this one too, hopefully someone else will have some more knowledge.  What version of OS X are you running?  If you are using Snow Leopard the static analyzer tool is now built into Xcode, so that may fix/bypass your problem completely.

Here&#039;s a link: http://developer.apple.com/mac/library/featuredarticles/StaticAnalysis/index.html

Best,
     Michael</description>
		<content:encoded><![CDATA[<p>Brett,</p>
<p>I&#8217;m afraid that I&#8217;m in the dark on this one too, hopefully someone else will have some more knowledge.  What version of OS X are you running?  If you are using Snow Leopard the static analyzer tool is now built into Xcode, so that may fix/bypass your problem completely.</p>
<p>Here&#8217;s a link: <a href="http://developer.apple.com/mac/library/featuredarticles/StaticAnalysis/index.html" rel="nofollow">http://developer.apple.com/mac/library/featuredarticles/StaticAnalysis/index.html</a></p>
<p>Best,<br />
     Michael</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://www.fruitstandsoftware.com/blog/2008/08/finding-memory-leaks-with-the-llvmclang-static-analyzer/comment-page-1/#comment-44</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Sun, 13 Dec 2009 17:04:38 +0000</pubDate>
		<guid isPermaLink="false">http://fruitstandsoftware.com/blog/?p=15#comment-44</guid>
		<description>I forgot to mention the command I am using is

scan-build -k -V xcodebuild -sdk iphonesimulator3.1 -configuration Debug</description>
		<content:encoded><![CDATA[<p>I forgot to mention the command I am using is</p>
<p>scan-build -k -V xcodebuild -sdk iphonesimulator3.1 -configuration Debug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://www.fruitstandsoftware.com/blog/2008/08/finding-memory-leaks-with-the-llvmclang-static-analyzer/comment-page-1/#comment-43</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Sun, 13 Dec 2009 17:03:08 +0000</pubDate>
		<guid isPermaLink="false">http://fruitstandsoftware.com/blog/?p=15#comment-43</guid>
		<description>I am also having the &quot;scan-build: Removing directory because it contains no reports.&quot; problem.  I have tried changing the project properties to &quot;iphone simulator 3.1&quot; and &quot;no code signing&quot;.  I have moved the binaries to /usr/local/bin.  I did a clean in Xcode.  I&#039;ve tried &quot;–use-cc=/usr/bin/gcc-4.2&quot; (this created another error about an invalid base, and I noticed that /usr/bin/gcc was already pointing to /usr/bin/gcc-4.2).  I am using version 2.31.  I am not seeing any errors related to SSE in the console.  Any other suggestions?</description>
		<content:encoded><![CDATA[<p>I am also having the &#8220;scan-build: Removing directory because it contains no reports.&#8221; problem.  I have tried changing the project properties to &#8220;iphone simulator 3.1&#8243; and &#8220;no code signing&#8221;.  I have moved the binaries to /usr/local/bin.  I did a clean in Xcode.  I&#8217;ve tried &#8220;–use-cc=/usr/bin/gcc-4.2&#8243; (this created another error about an invalid base, and I noticed that /usr/bin/gcc was already pointing to /usr/bin/gcc-4.2).  I am using version 2.31.  I am not seeing any errors related to SSE in the console.  Any other suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Huy</title>
		<link>http://www.fruitstandsoftware.com/blog/2008/08/finding-memory-leaks-with-the-llvmclang-static-analyzer/comment-page-1/#comment-42</link>
		<dc:creator>Huy</dc:creator>
		<pubDate>Mon, 07 Sep 2009 10:17:28 +0000</pubDate>
		<guid isPermaLink="false">http://fruitstandsoftware.com/blog/?p=15#comment-42</guid>
		<description>That worked for me on the first shot, thanks Brian.  Beautiful tool.  Great time saver.</description>
		<content:encoded><![CDATA[<p>That worked for me on the first shot, thanks Brian.  Beautiful tool.  Great time saver.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://www.fruitstandsoftware.com/blog/2008/08/finding-memory-leaks-with-the-llvmclang-static-analyzer/comment-page-1/#comment-41</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Tue, 18 Aug 2009 13:21:17 +0000</pubDate>
		<guid isPermaLink="false">http://fruitstandsoftware.com/blog/?p=15#comment-41</guid>
		<description>I just found my own answer:

THIS WORKED:

scan-build -k -V xcodebuild -configuration Debug -sdk iphonesimulator3.0</description>
		<content:encoded><![CDATA[<p>I just found my own answer:</p>
<p>THIS WORKED:</p>
<p>scan-build -k -V xcodebuild -configuration Debug -sdk iphonesimulator3.0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://www.fruitstandsoftware.com/blog/2008/08/finding-memory-leaks-with-the-llvmclang-static-analyzer/comment-page-1/#comment-40</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Tue, 18 Aug 2009 13:09:30 +0000</pubDate>
		<guid isPermaLink="false">http://fruitstandsoftware.com/blog/?p=15#comment-40</guid>
		<description>Is clang working for anyone else when analyzing a project that contains a 3.0 library such as MessageUI?

I keep getting an error &quot;MessageUI/MessageUI.h: No such file or directory&quot;.

It builds fine if I just do an &#039;xcodebuild&#039; or build within xcode.

I have tried setting the basesdk for all to 2.2, and I have tried :

scan-build -k -V xcodebuild -configuration Debug -sdk iphonesimulator2.2

scan-build -k -V xcodebuild -configuration Debug -sdk iphonesimulator2.1

scan-build -k -V xcodebuild -configuration Debug

scan-build -k -V xcodebuild

Doing some searches it seems like it may have to do witht the fact that this is a 3.0 library ?</description>
		<content:encoded><![CDATA[<p>Is clang working for anyone else when analyzing a project that contains a 3.0 library such as MessageUI?</p>
<p>I keep getting an error &#8220;MessageUI/MessageUI.h: No such file or directory&#8221;.</p>
<p>It builds fine if I just do an &#8216;xcodebuild&#8217; or build within xcode.</p>
<p>I have tried setting the basesdk for all to 2.2, and I have tried :</p>
<p>scan-build -k -V xcodebuild -configuration Debug -sdk iphonesimulator2.2</p>
<p>scan-build -k -V xcodebuild -configuration Debug -sdk iphonesimulator2.1</p>
<p>scan-build -k -V xcodebuild -configuration Debug</p>
<p>scan-build -k -V xcodebuild</p>
<p>Doing some searches it seems like it may have to do witht the fact that this is a 3.0 library ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.fruitstandsoftware.com/blog/2008/08/finding-memory-leaks-with-the-llvmclang-static-analyzer/comment-page-1/#comment-39</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Wed, 12 Aug 2009 19:28:26 +0000</pubDate>
		<guid isPermaLink="false">http://fruitstandsoftware.com/blog/?p=15#comment-39</guid>
		<description>Luke,

Open Terminal.app and type &#039;ls -l /&#039; (without the quotes).

If the tmp directory does not exist you can create it by typing &#039;mkdir /tmp&#039; (again, without the quotes).

If the tmp directory does exist you will need to modify your permissions on it.  Take a look at the man page for chmod (&#039;man chmod&#039;) to see how to modify the permissions of this directory for your user.  You may have to be root to modify the permissions.</description>
		<content:encoded><![CDATA[<p>Luke,</p>
<p>Open Terminal.app and type &#8216;ls -l /&#8217; (without the quotes).</p>
<p>If the tmp directory does not exist you can create it by typing &#8216;mkdir /tmp&#8217; (again, without the quotes).</p>
<p>If the tmp directory does exist you will need to modify your permissions on it.  Take a look at the man page for chmod (&#8216;man chmod&#8217;) to see how to modify the permissions of this directory for your user.  You may have to be root to modify the permissions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke Du</title>
		<link>http://www.fruitstandsoftware.com/blog/2008/08/finding-memory-leaks-with-the-llvmclang-static-analyzer/comment-page-1/#comment-38</link>
		<dc:creator>Luke Du</dc:creator>
		<pubDate>Wed, 12 Aug 2009 03:51:54 +0000</pubDate>
		<guid isPermaLink="false">http://fruitstandsoftware.com/blog/?p=15#comment-38</guid>
		<description>Hi there,

I&#039;ve got an error I just can not resolve whatsoever,

When I run &quot;scan-build -k -V xcodebuild -configuration Debug -sdk iphonesimulator3.0&quot;

Error: &quot;scan-build: The directory &#039;/tmp&#039; does not exist or cannot be accessed.&quot;

Look forward to hearing from you soon.</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>I&#8217;ve got an error I just can not resolve whatsoever,</p>
<p>When I run &#8220;scan-build -k -V xcodebuild -configuration Debug -sdk iphonesimulator3.0&#8243;</p>
<p>Error: &#8220;scan-build: The directory &#8216;/tmp&#8217; does not exist or cannot be accessed.&#8221;</p>
<p>Look forward to hearing from you soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe D'Andrea</title>
		<link>http://www.fruitstandsoftware.com/blog/2008/08/finding-memory-leaks-with-the-llvmclang-static-analyzer/comment-page-1/#comment-37</link>
		<dc:creator>Joe D'Andrea</dc:creator>
		<pubDate>Sun, 09 Aug 2009 20:07:33 +0000</pubDate>
		<guid isPermaLink="false">http://fruitstandsoftware.com/blog/?p=15#comment-37</guid>
		<description>I spoke too soon! It works. It was pilot error. In short, I did everything EXCEPT add Three20 as a direct dependency. The app compiled in spite of that, but Clang didn&#039;t buy it. :)

For those experiencing similar issues, read the README that comes with Three20 and follow &quot;Adding Three20 to your project&quot; step by step. (I mistakenly skipped Step 4! Tsk-tsk.) Once you do that, I&#039;m confident it will work just fine.</description>
		<content:encoded><![CDATA[<p>I spoke too soon! It works. It was pilot error. In short, I did everything EXCEPT add Three20 as a direct dependency. The app compiled in spite of that, but Clang didn&#8217;t buy it. <img src='http://www.fruitstandsoftware.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>For those experiencing similar issues, read the README that comes with Three20 and follow &#8220;Adding Three20 to your project&#8221; step by step. (I mistakenly skipped Step 4! Tsk-tsk.) Once you do that, I&#8217;m confident it will work just fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe D'Andrea</title>
		<link>http://www.fruitstandsoftware.com/blog/2008/08/finding-memory-leaks-with-the-llvmclang-static-analyzer/comment-page-1/#comment-36</link>
		<dc:creator>Joe D'Andrea</dc:creator>
		<pubDate>Sun, 09 Aug 2009 20:03:25 +0000</pubDate>
		<guid isPermaLink="false">http://fruitstandsoftware.com/blog/?p=15#comment-36</guid>
		<description>Has anyone been able to make Clang play nicely with Joe Hewitt&#039;s Three20 library?

When I run Clang on Three20 itself, it&#039;s fine. When I run Clang on my app (which uses libThree20.a), Clang (via StaticAnalyzer) reports: &quot;libThree20.a, file is not of required architecture&quot; ... followed by a lot of undefined symbols (of course) and no output. :(

Clues welcome/appreciated!</description>
		<content:encoded><![CDATA[<p>Has anyone been able to make Clang play nicely with Joe Hewitt&#8217;s Three20 library?</p>
<p>When I run Clang on Three20 itself, it&#8217;s fine. When I run Clang on my app (which uses libThree20.a), Clang (via StaticAnalyzer) reports: &#8220;libThree20.a, file is not of required architecture&#8221; &#8230; followed by a lot of undefined symbols (of course) and no output. <img src='http://www.fruitstandsoftware.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Clues welcome/appreciated!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
