-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
将xmake包的头文件路径添加到intellisense的库路径中 #149
Labels
Comments
看下 #40 |
项目里有下列依赖:
按照 #40 生成 |
自己检查下 .vscode/compile_commands.json 里面的路径 |
路径没问题,手动复制到 |
路径没问题的话,那就跟 xmake 没啥关系了,xmake 只保证生成正常可用的 compile_commands.json 至于 clangd 还是 cpptools 加载后,部分路径不识别,那是他们的问题,你得给他们提 issues,而不是这里。 |
在c_cpp_properties.json里指定下compileCommands试试。就不用手动添加includePath了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你在什么场景下需要该功能?
某个项目使用了xmake提供的c++依赖,在项目内浏览这个依赖的头文件时intellisense警告称该头文件不存在。
描述可能的解决方案
xmake 插件修改
c_cpp_properties.json
,添加对应xmake包的头文件。描述你认为的候选方案
在
xmake.lua
中列出xmake包的包含路径,生成相应的配置文件其他信息
No response
The text was updated successfully, but these errors were encountered: