apply clang-format to all C++ sources

This is to prevent unrelated diff when applying clang-format in
following CLs.

Generated by
$ tools/run_formatter.sh

I'll add .git-blame-ignore-revs after submitting this.

Change-Id: If8d82dd952d11c283752fc7afce634a04088f476
Reviewed-on: https://gn-review.googlesource.com/c/gn/+/16440
Reviewed-by: Brett Wilson <[email protected]>
Reviewed-by: Petr Hosek <[email protected]>
Commit-Queue: Takuto Ikuta <[email protected]>
Reviewed-by: David Turner <[email protected]>
diff --git a/tools/run_formatter.sh b/tools/run_formatter.sh
new file mode 100755
index 0000000..d7197b9
--- /dev/null
+++ b/tools/run_formatter.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+cd $(dirname $(dirname $0))
+
+ensure_file=$(mktemp)
+
+# https://chrome-infra-packages.appspot.com/p/fuchsia/third_party/clang
+echo 'fuchsia/third_party/clang/${platform} integration' > $ensure_file
+cipd ensure -ensure-file $ensure_file -root clang
+
+git ls-files | egrep '\.(h|cc)$' | fgrep -v 'third_party' |\
+    xargs ./clang/bin/clang-format -i