Because I completely don't understand Astyle formatting, but for beginners, the C language introduction is all done using dev-c++. After several months, I forgot how to configure LLVM clang-format parameters, so I'm recording it.
Place the .clang-format file in the project root directory, configure the tool, and point the tool path to the executable file of LLVM clang-format. The working directory is
<PROJECTPATH>
Pass in parameters
-style=file -i $(ACTIVE_EDITOR_FILENAME)
This article is synchronized and updated to xLog by Mix Space. The original link is https://www.yono233.cn/notes/25