[cfe-dev] Command line encoding in JSON Compilation Database
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev