LibFormat
LibFormat is a library that implements automatic source code formatting based on Clang. This documents describes the LibFormat interface and design as well as some basic style discussions.
If you just want to use clang-format as a tool or integrated into an editor, checkout ClangFormat.