clangd 是基于 compile_commands.json 配置文件来运行的,所以需要使用相关工具来生成,这里使用的是 bear。 bear 是一个基于 makefile 来生成 compile_commands.json 的工具。sudo apt install bear安装好 bear 后,运行 bear -- xxx(make 构建项目的指令) 就可以生成了。 clang-format 配置 同样插件商城搜索 clang...
I am getting the same thing (on every single character I type) when usingnull-ls, so it is likely something that changed either with the core LSP client inNeovim(I'm using the latestnightlybuild) as I have not updatedclangditself in a long time@pact0. Yea, this was added recentlyhere...
vscode settings used: { "cmake.configureOnOpen": true "editor.formatOnSave": true, "editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd" } Create a C++ source file. Create a .clang-format-ignore file and add the source file ...
> +.clangd > +.clang-format > +compile_commands.json > +.cache/ What are these from? Why add them to your $HOME/.gitignore? Chris ___ devel mailing list devel@rtems.orghttp://lists.rtems.org/mailman/listinfo/devel
In Microsoft's C/C++ extension, this is possible via the C_Cpp.clang_format_fallbackStyle setting. It'd be nice if clangd could have the same because it's annoying to configure a .Clang-Format for every project I make, especially for the small one-off projects that don't involve ...
Hello guys. I've posted the same message to clangd-dev, just in case posting here. Clangd by default tries to use .clang-format file to format code. Since "Format as you type" is experimental feature, it may be unusual for people like me...
Ey! I will be pleased if you could upload statically build binaries for clangd and clang-format to work on a Red Hat 6.3. This machine is not mine and I don't have root access. The compiler installed on it is GCC 4.4.6. On that machine clang is not installed, nor LLVM. $ rpm ...
The problem: When running the code action for some clang-tidy checks with clangd, there will be commas left over after the code action is completed, causing a compile error and requiring the user t...