Support C++11 scoped enums.
Formatting.

Remove trailing whitespace.
Convert tabs to four spaces.
Make sure each file has exactly one newline at the end.
Avoid warnings.