Open gianmarcoodorizzi opened 2 years ago
Not sure, but I think neither clangd
nor compdb
understand well the --sysroot
part, so the system headers aren't found.
If you manage to make clangd
work, you shouldn't need compdb
, so that's what I would focus on.
Hello,
I am using Visual Studio Code with vscode-clangd extension, which reads a _compilecommands.json file and sets up the project based on that. I noticed, however, that it fails to recognize includes inside header files that do not have a corresponding source file:
when including
<string>
.Hence, I am using your tool. My (simplified) project directory structure is as follows:
When issue the command, this is what I get:
The original compilation database contains a list of similar entries:
while the modified one has:
as well as entries for headers:
Is there something wrong with what I am doing here? Thank you in advance.