clang-format@11

Code formatter for C, C++, Obj-C, Java, JavaScript, TypeScript

brewmacoslinux
Try with needOr install directly
Source

About

Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript

Commands

clang-format

Examples

Format a single C++ file in-place$ clang-format -i myfile.cpp
Format a file and display the output without modifying it$ clang-format myfile.cpp
Format multiple files with a specific style$ clang-format -style=llvm -i *.cpp