<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css"><!--P {margin-top:0;margin-bottom:0;}--></style>
</head>
<body ocsi="0" fpstyle="1" bgcolor="#FFFFFF">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Anton and Jordan,<br>
<br>
Thank you so much for your prompt replies. I appreciate the assistance you have and will be providing.<br>
<br>
<br>
Anton,<br>
<br>
So based on what you have sent me, then the Clang Static Analyzer, called via scan-build, was not provided in the svn checkout that I performed when getting Clang, is that correct? Is there an svn repository for it that I can check out, or do I just need to
go to the source files and get it specifically and add it to the clang/tools directory of my directory?<br>
<br>
I also noticed in the commands for clang there is an option for running a static analyzer, albeit I am not sure if they are different from one another and if they are different from the one run by scan-build command, when you pull up the help menu for the clang
command. The options are -Xanalyzer and --analyze, if I am remembering those correctly. Could you explain these options to me a little more, if possible?<br>
<br>
<br>
Regards,<br>
Jon<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF669746"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Anton Yartsev [anton.yartsev@gmail.com]<br>
<b>Sent:</b> Thursday, June 06, 2013 9:29 PM<br>
<b>To:</b> Lockhart, Jonathan (lockhaja)<br>
<b>Cc:</b> Jordan Rose; cfe-dev Developers<br>
<b>Subject:</b> Re: Trouble Using scan-build in Windows 7<br>
</font><br>
</div>
<div></div>
<div>
<div class="moz-cite-prefix">On 07.06.2013 5:24, Anton Yartsev wrote:<br>
</div>
<blockquote type="cite">
<div class="moz-cite-prefix">Hi Jonathan,<br>
<br>
To use the scan-build you should get the contents of clang\tools\scan-build from Clang sources as Jordan pointed out.<br>
Currently the scan-build script expects the clang executables (clang.exe and clang++.exe) to live in ./clang or ./bin/clang</div>
</blockquote>
mistake, ./ or ./bin<br>
<blockquote type="cite">
<div class="moz-cite-prefix">directory relative to directory with the scan-build stuff but you can use the --use-analyzer=[Xcode|path to clang] scan-build option to tell scan-build where your clang executables live.<br>
The last thing you should do is to add the path to scan-build to your PATH and then you should be able to use scan-build as it described in
<a class="moz-txt-link-freetext" href="http://clang-analyzer.llvm.org/scan-build.html" target="_blank">
http://clang-analyzer.llvm.org/scan-build.html</a>.<br>
Hope I've not missed something.<br>
Feel free to ask and point to problems.<br>
<br>
</div>
<blockquote type="cite">
<div>No, cfe-dev is the appropriate list for questions. (Or cfe-users, but to be honest we analyzer folks don't follow that list much and you probably wouldn't have gotten an answer there!)</div>
<div><br>
</div>
<div>scan-build is not installed with Clang or LLVM; I believe when the analyzer project first began it wasn't clear if everyone would want it as a part of their default install. You can find the executables in tools\scan-build under your Clang source directory
(probably llvm\tools\clang.)</div>
<div><br>
</div>
<div>I've CC'd Anton Yartsev, who I know has been running scan-build on Windows for some time. (Not sure which version, though.)</div>
<div>Jordan</div>
<div><br>
</div>
<br>
<div>
<div>On Jun 3, 2013, at 14:13 , "Lockhart, Jonathan (lockhaja)" <<a href="mailto:lockhaja@mail.uc.edu" target="_blank">lockhaja@mail.uc.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="font-family:Helvetica; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">
<div style="direction:ltr; font-family:Tahoma; font-size:10pt">Hello Clang Users and Developers,<br>
<br>
I apologize in advance if this is going to the wrong email list, but I thought it would be inappropriate to send it to the dev list.<span class="Apple-converted-space"> </span><br>
<br>
I am currently working on using Clang and LLVM in some research I am doing. More specifically at this time I am trying to use the Clang Static Analysis Tool. I have been able to follow the instructions on the Static Analysis Tool site as well as the LLVM page
for compiling the code with Cmake for use with Visual Studio, and I have successfully built the system using "ALL_BUILD" as well as have testing successfully clang by build "clang-test" in visual studio.<span class="Apple-converted-space"> </span><br>
<br>
With that said I seem to be able to find the bin file from which all the material from the system was installed. Following the directions, I would believe it to be located in the \bin directory under build but it is not there. I have also search my llvm and
build directories with no mention of scan-build being found via inspection or search.<span class="Apple-converted-space"> </span><br>
<br>
I was wondering if the instructions online were outdated and a newer process for running the Clang Static Analyzer was now used? Is the project even still active and worth me using in the development of my C programs? Is there now a way to use the tool from
an IDE on the code you have written, such as through Eclipse or Visual Studio?<br>
<br>
These are the questions I currently have as I am stuck after building and testing via the instructions found here:<a href="http://clang.llvm.org/get_started.html#build" target="_blank">http://clang.llvm.org/get_started.html#build</a>. Any assistance would be
most appreciative.<br>
<br>
<div>Regards,<br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">Jon Lockhart<br>
PhD Candidate - EE Systems<br>
IEEE Vice President 13/14<br>
University of Cincinnati<br>
<a href="mailto:lockhaja@mail.uc.edu" target="_blank">lockhaja@mail.uc.edu</a></div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu" target="_blank">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</div>
</blockquote>
</div>
<br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Anton</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Anton</pre>
</div>
</div>
</div>
</body>
</html>