clangd是基于compile_commands.json配置文件来运行的,所以需要使用相关工具来生成,这里使用的是bear。 bear是一个基于makefile来生成compile_commands.json的工具。sudo apt install bear安装好bear后,运行bear -- xxx(make 构建项目的指令)就可以生成了。 clang-format 配置 同样插件商城搜索clang format,并下载clang-f...
* <buffer>]] vim.api .nvim_command [[autocmd BufWritePost <buffer> lua vim.lsp.buf.formatting_sync({},1500)]] vim.api.nvim_command [[augroup END]] end end local clang_format = require 'efm/clang_format' local languages = { clangd = {clang_format}, cpp = {clang_format} } ....
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 colla...
[PATCH 1/3] gitignore: Ignore clangd and clang-format filesUtkarsh Verma Re: [PATCH 1/3] gitignore: Ignore clangd and clang-form...Chris Johns Re: [PATCH 1/3] gitignore: Ignore clangd and clang-...Chris Johns Re: [PATCH 1/3] gitignore: Ignore clangd and cl...Utkarsh Verma ...
> >> +.clangd > >> +.clang-format > >> +compile_commands.json > >> +.cache/ > > > > What are these from? > > > > Why add them to your $HOME/.gitignore? > > Sorry ... that should be > > Why not add them to your $HOME/.gitignore?
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 ...