lljbash / clangd-tidy

A faster alternative to clang-tidy
MIT License
36 stars 7 forks source link

clangd-format #6

Open mateosss opened 1 month ago

mateosss commented 1 month ago

Are you planning on making a clangd-format equivalent? It would be very useful for CI jobs to just download clangd and have both clang-tidy and clang-format options.

In any case, thank you for making this wrapper, it is very useful!

lljbash commented 2 weeks ago

clang-format is already fast enough, so IMO there’s no strong reason to create a clangd-format solely to avoid typing pip install clang-format.

I’d love to hear your thoughts on this.

mateosss commented 2 weeks ago

I agree, clang-format is already pretty fast on its own. This would be just to avoid downloading another dependency on each CI run since clangd already embeds clang-format.

lljbash commented 2 weeks ago

Sounds promising! However, I still need to confirm which option you’re expecting:

  1. An extra flag in clangd-tidy to check formatting.
  2. A standalone equivalent of clang-format.

The latter would be more complex to implement.

mateosss commented 2 weeks ago

Option 1 would be great :)