You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Visual Studio Code with vscode-clangd extension, which reads a compile_commands.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:
'string' file not found
when including <string>.
Hence, I am using your tool.
My (simplified) project directory structure is as follows:
$ compdb --trace -p build/ list > compile_commands.json
WARNING:compdb.includedb:libmodbus/include/modbus.h: could not resolve header: "stdint.h"
WARNING:compdb.includedb:src/Module1/Module1.hpp: could not resolve header: "zmq_utils.h"
WARNING:compdb.includedb:src/Module2/Module2.cpp: could not resolve header: "time.h"
The original compilation database contains a list of similar entries:
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 compile_commands.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.
The text was updated successfully, but these errors were encountered: