<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>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><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>
<p>In Windows, I have to manually write the compile_commands.json file, which is an additional task for huge source code.</p>
<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">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><br></div></div>