Format your C++ files with clang-format from inside atom. Requires clang-format to be installed and on your systems path.
More info on clang-format can be found here: http://clang.llvm.org/docs/ClangFormat.html http://clang.llvm.org/docs/ClangTools.html