Add .clang-format configuration file for source code formatting.
Run clang-format on the codebase.
Merge pull request #343 from sparkle-project/clang-format

Add .clang-format configuration file for source code formatting.

Also run clang-format on the codebase.