Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions tests/clang_format_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# limitations under the License.

# this file is adapted from
# github/pytorch/pytorch/blob/63d62d3e44a0a4ec09d94f30381d49b78cc5b095/tools/clang_format_utils.py
# https://github.com/pytorch/pytorch/blob/v1.9.1/tools/clang_format_utils.py.

import os
import platform
Expand All @@ -32,10 +32,11 @@
}

# This dictionary maps each platform to a relative path to a file containing its reference hash.
# github/pytorch/pytorch/tree/63d62d3e44a0a4ec09d94f30381d49b78cc5b095/tools/clang_format_hash
# Refer to: https://github.com/pytorch/pytorch/tree/master/tools/clang_format_hash.
# Note: the hash value may need update when the `clang-format` package is updated in Amazon S3.
PLATFORM_TO_HASH = {
"Darwin": "b24cc8972344c4e01afbbae78d6a414f7638ff6f",
"Linux": "9073602de1c4e1748f2feea5a0782417b20e3043",
"Darwin": "acfda23b360824017c86528f6d59769bd4cf5587",
"Linux": "938869fb71b05f5ba345ab36dfbbc4388f53a550",
}

# Directory and file paths for the clang-format binary.
Expand Down