Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to use clang-format

📅 2020-Mar-21 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

clang-format is a tool that can be used to format C++ code to match a coding style.

$ sudo apt install clang-format
$ clang-format foobar.cpp
$ clang-format -style=file