[PATCH] D70222: [clangd] Add support for .rsp files in compile_commands.json
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 18 03:06:35 PST 2019
kadircet added a comment.
Thanks for taking a look into this, the `rsp files` issue has came up before in the past but there wasn't enough investment to implement it.
Haven't checked the implementation in detail yet, I believe the layering should be different;
This is a common problem for all of the clang-related tools, as they all share the same "compilation database" abstraction layer, therefore it would be better to implement this at that layer so that other tools (e.g, clang-tidy) can also benefit from this.
You can find the related code in `clang/include/clang/Tooling/CompilationDatabase.h` and `clang/lib/Tooling/CompilationDatabase.cpp`.
Also compilation databases has been historically neglecting `Virtual File System` abstractions, it is hard to change it now. But would be great if you could try to keep that in mind while performing reads.
So would you mind making such changes ?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70222/new/
https://reviews.llvm.org/D70222
More information about the cfe-commits
mailing list