DEV Community

Discussion on: Formatting Cpp, C, Javascript And Other Stuff

Collapse
mihaylov profile image
Petar Petrov

I like to combine Astyle (Artistic Style) with clang-format because it solves some of the limitations that clang-format has, like adding missing brackets to control statements. Clang-tidy is capable of that but it needs to be aware of compilation flags, the compilation database and so on, making it unfeasible for hooks (plus its slow).

astyle.sourceforge.net/astyle.html