diff options
author | sstwcw <su3e8a96kzlver@posteo.net> | 2023-07-04 23:42:00 +0000 |
---|---|---|
committer | sstwcw <su3e8a96kzlver@posteo.net> | 2023-08-24 03:06:45 +0000 |
commit | 825cec2c0b1ecec49995126674a8e58cd813476c (patch) | |
tree | feb61ea9e59775772fc8d7645abcd23d73b507ac /clang/tools/clang-format/clang-format-diff.py | |
parent | b65ce4ea7c1f6cbd140d12c690b19e7a14a34fef (diff) | |
download | llvm-825cec2c0b1ecec49995126674a8e58cd813476c.zip llvm-825cec2c0b1ecec49995126674a8e58cd813476c.tar.gz llvm-825cec2c0b1ecec49995126674a8e58cd813476c.tar.bz2 |
[clang-format] Add Verilog suffixes to the scripts
I decided not to wait for D149088 because it was taking a long time.
The capture group in the regexp was changed to non-capturing. It
doesn't need to be captured.
Reviewed By: HazardyKnusperkeks, owenpan
Differential Revision: https://reviews.llvm.org/D154467
Diffstat (limited to 'clang/tools/clang-format/clang-format-diff.py')
-rwxr-xr-x | clang/tools/clang-format/clang-format-diff.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/tools/clang-format/clang-format-diff.py b/clang/tools/clang-format/clang-format-diff.py index 6e707fc..324ef5b 100755 --- a/clang/tools/clang-format/clang-format-diff.py +++ b/clang/tools/clang-format/clang-format-diff.py @@ -61,8 +61,8 @@ def main(): 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)", ) |