kirillbobyrev wrote: I'm sorry, I haven't touched Emacs and its Clang-Format integration for 8 years, so I am not very qualified to review this. I would advise to use clangd + LSP integration instead. https://github.com/llvm/llvm-project/pull/78904