| Issue |
53143
|
| Summary |
JSON compilation database spec is ambiguous
|
| Labels |
|
| Assignees |
|
| Reporter |
rtbo
|
Hello,
While addressing issue [#8649](https://github.com/microsoft/vscode-cpptools/issues/8649) for `vscode-cpptools` extension, we noticed that the Clang compilation database format specification is ambiguous.
While the quotes escaping for the `"command"` field is clearly specified, there is no such specification for the `"arguments"` field.
1. Should each argument in the array be escaped for shell as is the `"command"` field?
2. Or should the array be read "as is", like if it is sent directly to `execv`?
>From what I have [tested](https://github.com/microsoft/vscode-cpptools/issues/8649#issuecomment-1010205199), the 2nd seems to apply, but it would be better to have the specification explicitly document this.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs