armclang工具链,xmake f -p cross -a cortex-m4 --toolchain=armclang -c生成工程后,用xmake project -k compile_commands .vscode生成的compile_commands.json文件中,自动生成的argument “-target=arm-arm-none-eabi” 项有问题(一个“-”号)
When using xmake to generate compile_commands, report error Expected results Can generate clangd's compile_commands json file Project configuration It is not convenient to provide, but look at the code, in the input parameter of _make_arguments, the fourth parameter is nil ...
target("glfw-uitest") add_packages("imgui") set_kind("binary") add_files("*.cpp") 一开始的configs里是没有docking=true,后来想试试docking版本改了下,头文件可以解析到,编译的时候还是用的没有docking的版本 compile_commands里对应的内容 { "directory": "e:\C\rfl", "arguments": ["D:\Program...
解决方案: 手动生成compile_commands.json: xmake project -k compile_commands 1. 然后把它拷贝到.vscode中即可。 c_cpp_properties.json(参考) { "configurations": [ { "compileCommands": ".vscode/compile_commands.json", "intelliSenseMode": "windows-msvc-x64", "cStandard": "c17", "cppStandard"...
xmake-vscode will generate .vscode/compile_commands.json file, so you need only add it to .vscode/c_cpp_properties.json to enable IntelliSense. for example (.vscode/c_cpp_properties.json): { "configurations": [ { "compileCommands": ".vscode/compile_commands.json" } ], "version": 4 }...
Clangd LSP 需要读取 C/C++ 项目的编译数据库(通常是 compile_commands.json 文件)才能发挥全部功能,XMake 会根据 xmake.lua 配置文件自动地在 .vscode 文件夹中生成该文件。 也可以先在终端运行 xmake config 完成configure 过程,然后在控制面板中输入 XMake: UpdateIntellsense,就可以在 .vscode 文件夹中找到自动...
[NEW]: Add icon for CMakelists and compile_commands 1.0.9 [NEW]: Support to generate CMakelists and compile_commands 1.0.8 [FIX]: Improve compatibility to support more versions 1.0.7 [FIX]: Improve compatibility and add usage instruction 1.0.6 [NEW]: Support latest CLion and IDEA ...
We can use it to directly compile projects like Make/Ninja, or generate project files like CMake/Meson. In addition, it also has a built-in package management system to help users solve C/C++ dependent library integration problems. At present, Xmake is mainly used for the construction of C...
[NEW]: Add icon for CMakelists and compile_commands 1.0.9 [NEW]: Support to generate CMakelists and compile_commands 1.0.8 [FIX]: Improve compatibility to support more versions 1.0.7 [FIX]: Improve compatibility and add usage instruction 1.0.6 [NEW]: Support latest CLion and IDEA ...
编译项目后,生成的 compile_commands并没有包含atlmfc,导致clangd找不到mfc的基础头文件 添加指定的atlmfc目录后,生成的compile_commands包含atlmfc,使得clangd能找到 期待的结果 补充compile_commands中对mfc的支持 工程配置 target("MemoryTraversal") add_rules("win.sdk.mfc.static_app") set_kind("binary") add...