我记得有一个".txt“文件,它允许定义链接/编译时参数,但我忘记了它的名称。
我试图在谷歌上寻找答案。
发布于 2022-11-13 17:26:45
文本文件名为compile_flags.txt
。
这是在https://clangd.llvm.org/installation#compile_flagstxt讨论的。
注意,与配置一个项目以便使用基于clang的工具compile_commands.json
相比,compile_flags.txt
存在一些缺点;最值得注意的是,clangd不会用compile_flags.txt
索引您的项目。
https://stackoverflow.com/questions/74421569
复制相似问题