This package allows to filter code through clang-format to fix its formatting. clang-format is a tool that formats C/C++/Obj-C code according to a set of style options, see Clang-Format Style Options. Note that clang-format 3.4 or newer is required.
clang-format.el is available on MELPA:
M-x package-install clang-format
or can be obtained from upstream, where the version originally contained in this repository has been moved to (see #2).