Skip to content

Commit

Permalink
clang-format: allow overriding clang-format
Browse files Browse the repository at this point in the history
it's in a weird path for me.

Signed-off-by: Alyssa Rosenzweig <[email protected]>
  • Loading branch information
alyssarosenzweig committed Apr 30, 2024
1 parent 1069cab commit 711ae84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/clang-format.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Wrapper globals
project_root = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..")
ignore_file_path = os.path.join(project_root, ".clang-format-ignore")
clang_format_command = "clang-format"
clang_format_command = os.getenv("CLANG_FORMAT") or "clang-format"


def glob_to_regex(pattern):
Expand Down

0 comments on commit 711ae84

Please sign in to comment.