- prefer arguments over command, and add example
- clarify that there's no shell-unescaping of arguments
Details
Details
- Reviewers
hokein - Commits
- rG16949762dc6a: [docs] Clarify & update JSONCompilationDatabase docs
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
clang/docs/JSONCompilationDatabase.rst | ||
---|---|---|
95 | Hopefully I'm not too far out on a limb here. Today, command is generated by CMake & others. The shell unescaping performed is underspecified and platform-specific (#if _WIN32 ... #else). There are non-llvm consumers of this format (e.g. vscode-cpptools). I think we're in danger of interop problems and gently encouraging migration to arguments reduces the danger. |
clang/docs/JSONCompilationDatabase.rst | ||
---|---|---|
95 | yeah, the arguments was added 7 years ago, and most of tools are still generating command... |
Hopefully I'm not too far out on a limb here.
Today, command is generated by CMake & others. The shell unescaping performed is underspecified and platform-specific (#if _WIN32 ... #else). There are non-llvm consumers of this format (e.g. vscode-cpptools).
I think we're in danger of interop problems and gently encouraging migration to arguments reduces the danger.