[cfe-dev] Command line encoding in JSON Compilation Database
Manuel Klimek
klimek at google.com
Fri Jul 6 10:58:36 PDT 2012
On Fri, Jul 6, 2012 at 10:13 AM, Arnaud de Grandmaison <
arnaud.allarddegrandmaison at parrot.com> wrote:
> On 07/06/2012 09:39 AM, Florian Weimer wrote:
> > According to http://clang.llvm.org/docs/JSONCompilationDatabase.html,
> > the JSON Compilation Database uses a single string to describe the
> > actual compile command, and not an array. Is this string subject to any
> > kind of shell expansion? How is it supposed to be parsed into an argv
> > array?
> >
>
> Hi Florian,
>
> Within the clang environment, you do not need to parse it to an argv by
> yourself : the CompilationDatabase stuff does that for you. Regarding
> shell expansion, Manuel can probably shed some light on that part.
>
Correct. The string is "shell escaped", but " and \ are the only special
characters. No expansion is happening.
Cheers,
/Manuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120706/3839563e/attachment.html>
More information about the cfe-dev
mailing list