diff --git a/clang/tools/clang-format/clang-format-diff.py b/clang/tools/clang-format/clang-format-diff.py --- a/clang/tools/clang-format/clang-format-diff.py +++ b/clang/tools/clang-format/clang-format-diff.py @@ -61,8 +61,8 @@ parser.add_argument( "-iregex", metavar="PATTERN", - default=r".*\.(cpp|cc|c\+\+|cxx|cppm|ccm|cxxm|c\+\+m|c|cl|h|hh|hpp|hxx" - r"|m|mm|inc|js|ts|proto|protodevel|java|cs|json)", + default=r".*\.(?:cpp|cc|c\+\+|cxx|cppm|ccm|cxxm|c\+\+m|c|cl|h|hh|hpp" + r"|hxx|m|mm|inc|js|ts|proto|protodevel|java|cs|json|s?vh?)", help="custom pattern selecting file paths to reformat " "(case insensitive, overridden by -regex)", ) diff --git a/clang/tools/clang-format/git-clang-format b/clang/tools/clang-format/git-clang-format --- a/clang/tools/clang-format/git-clang-format +++ b/clang/tools/clang-format/git-clang-format @@ -98,6 +98,7 @@ 'ts', # TypeScript 'cs', # C Sharp 'json', # Json + 'sv', 'svh', 'v', 'vh', # Verilog ]) p = argparse.ArgumentParser(