Besides configuring your IDE/Editor probably (which you shoud of course do). There's also
clang-format if you want more flexibility (there are plenty of plugins for editors) or maybe need to easily reformat a lot of existing files.
And if you want to ensure that all files in your repository are always consistently formatted it is fairly simple to set up git hooks to either do the reformat auto magically on commit or at least complain loudly so you can do it manually - the llvm/clang projects have existing python scripts available that can be used for just that.