Add ResolvePtr() and C++11 support.
Add clang-format configuration file.