A code formatter for C, C++, Java, JavaScript, Objective-C and Protobuf. Use this tag with questions about setting up and configuring clang-format.
ClangFormat describes a set of tools that are built on top of LibFormat. It can support your workflow in a variety of ways including a standalone tool and editor integrations.
clang-format is located in clang/tools/clang-format
and can be used to format C, C++, Java, JavaScript, Objective-C and Protobuf code.
Documentation:
http://clang.llvm.org/docs/ClangFormat.html