Skip to content

vscode + clangd add_requires之后怎么有效在main.cpp中include头文件 #121

Answered by waruqi
Ramblestsad asked this question in Q&A
Discussion options

You must be logged in to vote

你这个是插件 intelligense 问题,xmake 插件本身支持自动生成 compile_commands.json 的,具体看 #40

至于 clangd 怎么配置使用 xmake 插件生成的 compile_commands.json ,你可以到 clangd 那边查文档。。

如果配置了还不生效,就看下 compile_commands.json 是否带上了相关的 include 路径。。如果带上了,还是不行,那就是 clangd 的 bug

你得到 clangd/issues 那边去反馈。

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Ramblestsad
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants