]> granicus.if.org Git - clang/commit
clang-format-diff.py: Support -regex filter and more filename extensions
authorAlp Toker <alp@nuanti.com>
Tue, 10 Dec 2013 13:51:53 +0000 (13:51 +0000)
committerAlp Toker <alp@nuanti.com>
Tue, 10 Dec 2013 13:51:53 +0000 (13:51 +0000)
commitb6c2b00ea6f12b5c40f58f33bc4b00051453fa4f
tree39efbe24a523cdff27895491c1664fcc71230e68
parentd31b98f0a89e0d8cb3a32fb693018ab9d98f3131
clang-format-diff.py: Support -regex filter and more filename extensions

Add support for more filename extensions based on the list in the clang
plus JavaScript.

Also adds a -regex option so users can override defaults if they have unusual
file extensions or want to format everything in the diff.

Keeping with tradition the flag is modelled on Unix conventions, this time
matching the semantics of find(1).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196917 91177308-0d34-0410-b5e6-96231b3b80d8
docs/ClangFormat.rst
tools/clang-format/clang-format-diff.py