llvm-project
b4f6e805 - [clang-format] fix: add missing extensions to `clang-format-diff.py`'s default filter (#241793)

Commit
4 hours ago
[clang-format] fix: add missing extensions to `clang-format-diff.py`'s default filter (#241793) Hello, I've added nine missing extensions to `clang-format-diff.py`’s default filter. These are already supported by `clang-format`, but the script silently skips them. | Language | Extensions | Reference | |---|---|---| | C++ | `.cp` | [git-clang-format](https://github.com/llvm/llvm-project/blob/4e8f741d81620d640c4d25b9e78f327772e60ed7/clang/tools/clang-format/git-clang-format#L99) | | CUDA | `.cu`, `.cuh` | [git-clang-format](https://github.com/llvm/llvm-project/blob/4e8f741d81620d640c4d25b9e78f327772e60ed7/clang/tools/clang-format/git-clang-format#L111-L112) | | TableGen | `.td` | [Format.cpp](https://github.com/llvm/llvm-project/blob/4e8f741d81620d640c4d25b9e78f327772e60ed7/clang/lib/Format/Format.cpp#L4703-L4704) | | TextProto | `.txtpb`, `.textpb`, `.pb.txt`, `.textproto`, `.asciipb` | [Format.cpp](https://github.com/llvm/llvm-project/blob/4e8f741d81620d640c4d25b9e78f327772e60ed7/clang/lib/Format/Format.cpp#L4696-L4702) | Only the default regex changes, with the dot in `.pb.txt` escaped.
Author
Parents
Loading