<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:10pt;color:#000000;background-color:#FFFFFF;font-family:Tahoma, Geneva, sans-serif;">
<p><font size="2"><font face="Tahoma, Geneva, sans-serif">Richard,</font></font></p>
<p><font size="2"><font face="Tahoma, Geneva, sans-serif">Thank you for your prompt reply!
</font></font></p>
<p><br>
<font size="2"><font face="Tahoma, Geneva, sans-serif"></font></font></p>
<p><font size="2"><font face="Tahoma, Geneva, sans-serif">Manuel,</font></font></p>
<p><font size="2"><font face="Tahoma, Geneva, sans-serif">Thank you for the confirmation!</font></font></p>
<p><font size="2"><font face="Tahoma, Geneva, sans-serif">Yes, I am using the Visual Studio build. Can you please elaborate on the the compilation database generation with Python? Are you referring to the xml files in 'llvm\Utils'?</font></font></p>
<p><br>
<font size="2"><font face="Tahoma, Geneva, sans-serif"></font></font></p>
<p><font size="2"><font face="Tahoma, Geneva, sans-serif">Regards,</font></font></p>
<p><font size="2"><font face="Tahoma, Geneva, sans-serif">Pradnya<br>
</font></font></p>
<div id="Signature"></div>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Manuel Klimek <klimek@google.com><br>
<b>Sent:</b> Monday, March 30, 2015 11:11 PM<br>
<b>To:</b> Richard Smith; Pradnya Laxman Khalate<br>
<b>Cc:</b> cfe-dev@cs.uiuc.edu<br>
<b>Subject:</b> Re: [cfe-dev] How do clang tools handle input like '/path/to/files/*.c'?</font>
<div> </div>
</div>
<div>
<div dir="ltr"><br>
Answering multiple people inline :)
<div><br>
<div class="gmail_quote">On Mon, Mar 30, 2015 at 7:45 PM Richard Smith <<a href="mailto:richard@metafoo.co.uk">richard@metafoo.co.uk</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Mon, Mar 30, 2015 at 7:17 PM, Pradnya Laxman Khalate <span dir="ltr">
<<a href="mailto:plkhalat@syr.edu" target="_blank">plkhalat@syr.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div style="font-size:10pt; color:#000000; background-color:#ffffff; font-family:Tahoma,Geneva,sans-serif">
<p>Hi,</p>
<p><br>
</p>
<p>I am studying Clang for an academic project. I am using Clang from Windows. I was able to build it with MSVS 2013. I am using MinGW and msys shell to run the Clang tools from the command line.</p>
<p><br>
</p>
<p>As a trial, I gave a path input to clang-tidy tool - </p>
<p> clang-tidy ../<path>/*.cpp -checks="readability-braces-around-statements" --<br>
</p>
<p><br>
</p>
<p>It is interesting that the tool was able to handle this without compilation database (Note --).</p>
<p>To see how this input is handled by 'CommonOptionsParser', I gave the same input through Visual Studio debugger in my clang build. However, the tool throws an error for the argument '/path/*.cpp'.</p>
<p>In general, how do clang tools handle such 'SourcePath' input?</p>
</div>
</div>
</blockquote>
</div>
</div>
</div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div>The difference between the above two scenarios is probably the msys shell -- when a unix-like shell processes a command with wildcards in an argument, it performs path expansion on that argument (looking up files matching the pattern and converting the
 argument into a sequence of filenames). When you give the same wildcard pattern directly to the tool's argv, this will not typically happen.</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>Yep. </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div style="font-size:10pt; color:#000000; background-color:#ffffff; font-family:Tahoma,Geneva,sans-serif">
<p>Is it possible to run a clang tool on all files in a directory by using FixedCompilationDatabase? (It returns nullptr for getAllFiles())<br>
</p>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<div>No. </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div style="font-size:10pt; color:#000000; background-color:#ffffff; font-family:Tahoma,Geneva,sans-serif">
<p></p>
<p>In Windows, I have to manually write the compile_commands.json file, which is an additional task for huge source code.</p>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<div>Which build system are you using? The Visual Studio one? I think it has xml files, which you could parse with python to generate the compile_commands.json?</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div style="font-size:10pt; color:#000000; background-color:#ffffff; font-family:Tahoma,Geneva,sans-serif">
<p><br>
</p>
<p><font><font face="Tahoma, Geneva, sans-serif">Any suggestions / guidance is appreciated.</font></font></p>
<p><br>
</p>
<p><font><font face="Tahoma, Geneva, sans-serif">Thanks,</font></font></p>
<p><font><font face="Tahoma, Geneva, sans-serif">Pradnya</font></font></p>
<p><br>
</p>
<div>
<div name="divtagdefaultwrapper"><font><font face="Tahoma, Geneva, sans-serif"><br>
</font></font></div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br>
</blockquote>
</div>
</div>
</div>
______________________________<u></u>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-dev</a><br>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>