pytorch/tools/clang_format_ci.sh
superkirill 62f4f87914 Removed whitelist reference from tools/clang_format_ci.sh (#41636)
Summary:
Removed whitelist and blacklist references
Fixes https://github.com/pytorch/pytorch/issues/41753

Pull Request resolved: https://github.com/pytorch/pytorch/pull/41636

Reviewed By: SplitInfinity

Differential Revision: D22648632

Pulled By: suo

fbshipit-source-id: d22130a7cef96274f3fc73d00b50327dfcae332c
2020-07-21 12:32:14 -07:00

13 lines
397 B
Bash
Executable File

#!/bin/sh
set -eux
# Runs clang-format on allowlisted files.
# Requires a single argument, which is the <commit> argument to git-clang-format
# If you edit this allowlist, please edit the one in clang_format_all.py as well
find . -type f \
-path './torch/csrc/jit/*' -or \
-path './test/cpp/jit/*' -or \
-path './test/cpp/tensorexpr/*' \
| xargs tools/git-clang-format --verbose "$1" --