[C++] Refactor to conform to Google C++ style guide (#5608)