<div class="gmail_quote">On Fri, Jul 6, 2012 at 10:13 AM, Arnaud de Grandmaison <span dir="ltr"><<a href="mailto:arnaud.allarddegrandmaison@parrot.com" target="_blank">arnaud.allarddegrandmaison@parrot.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 07/06/2012 09:39 AM, Florian Weimer wrote:<br>
> According to <a href="http://clang.llvm.org/docs/JSONCompilationDatabase.html" target="_blank">http://clang.llvm.org/docs/JSONCompilationDatabase.html</a>,<br>
> the JSON Compilation Database uses a single string to describe the<br>
> actual compile command, and not an array. Is this string subject to any<br>
> kind of shell expansion? How is it supposed to be parsed into an argv<br>
> array?<br>
><br>
<br>
</div>Hi Florian,<br>
<br>
Within the clang environment, you do not need to parse it to an argv by<br>
yourself : the CompilationDatabase stuff does that for you. Regarding<br>
shell expansion, Manuel can probably shed some light on that part.<br></blockquote><div><br></div><div>Correct. The string is "shell escaped", but " and \ are the only special characters. No expansion is happening.</div>
<div><br></div><div>Cheers,</div><div>/Manuel</div><div><br></div></div>