diff options
author | Tim Clephas <tim.clephas@nobleo.nl> | 2025-04-10 20:40:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-10 20:40:43 +0200 |
commit | c893f1d18da6547027648f44592f61c08570d80f (patch) | |
tree | f2ffb6a470d8327306330e07c1dab34c44fa6c11 /clang/tools/clang-format/clang-format-diff.py | |
parent | 8bea91f677be4a05b1256a8052ab84dcd7ccb050 (diff) | |
download | llvm-c893f1d18da6547027648f44592f61c08570d80f.zip llvm-c893f1d18da6547027648f44592f61c08570d80f.tar.gz llvm-c893f1d18da6547027648f44592f61c08570d80f.tar.bz2 |
Treat ipynb as json (#135137)
Fixes #110727
Diffstat (limited to 'clang/tools/clang-format/clang-format-diff.py')
-rwxr-xr-x | clang/tools/clang-format/clang-format-diff.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/clang-format/clang-format-diff.py b/clang/tools/clang-format/clang-format-diff.py index aebe193..c82b41e 100755 --- a/clang/tools/clang-format/clang-format-diff.py +++ b/clang/tools/clang-format/clang-format-diff.py @@ -63,7 +63,7 @@ def main(): "-iregex", metavar="PATTERN", 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?)", + r"|hxx|m|mm|inc|js|ts|proto|protodevel|java|cs|json|ipynb|s?vh?)", help="custom pattern selecting file paths to reformat " "(case insensitive, overridden by -regex)", ) |