Use /usr/bin/clang-format instead of just "clang-format"
Members of the Chrome team, or people who just need to occasionally modify Chrome source, are likely to have a separate copy of clang-format, at /usr/local/google/src/depot_tools/clang-format, which works differently.
/usr/bin/clang-format is probably the one you want, at least for google3 users.
@@ -136,7 +136,7 @@ def replace_transpiled_js(target_names):
# Format .js files
run_cmd_get_output(
find_command_js_sources +
- ["-exec", "clang-format", "-i", "{}", "+"])
+ ["-exec", "/usr/bin/clang-format", "-i", "{}", "+"])
# Remove the old .js.txt files (results from the last run)
run_cmd_get_output(
