Here you will find instructions for how to set up the Google C++ code style in Eclipse.
1) Download this file: eclipse-cpp-google-style.xml
2) Open the preferences dialog in Eclipse:
3) Select the C/C++->Code Style->Formatter category and Click Import... to import the file you downloaded in step 1:
4) On the same page in the preferences dialog shown above, also make sure the Active profile is Google C++ (this should be selected automatically when you import the file).
5) Press OK to save the changes.