Add presubmit hooks

Adds two presubmit hooks:
  1. cros lint: Lints source files to make sure they follow Chromium style.
  2. git-clang-format: Uses git-clang-format to check formatting errors.

User can also run presubmit/git-clang-format.py to fix formatting errors
automatically.

BUG=b:30824236
TEST=Make sure presubmit checks run and pass with `repo upload`.

Change-Id: I8029611ff504425c5df703d29c42121c9f995593
Reviewed-on: https://chromium-review.googlesource.com/410464
Commit-Ready: Ricky Liang <jcliang@chromium.org>
Tested-by: Ricky Liang <jcliang@chromium.org>
Reviewed-by: Wu-cheng Li <wuchengli@chromium.org>
5 files changed