diff options
author | Daniel Jasper <djasper@google.com> | 2014-01-21 15:40:01 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-01-21 15:40:01 +0000 |
commit | 2158912a4edcd3c341b7570aec4424188631f46b (patch) | |
tree | 8ecb0fa41066ddc0e2dcb22ed1cac4b60c03cdfd /clang/tools/clang-format/clang-format-diff.py | |
parent | 0b385ac1386e1569471468b87a5ff2dc3f32aa17 (diff) | |
download | bcm5719-llvm-2158912a4edcd3c341b7570aec4424188631f46b.tar.gz bcm5719-llvm-2158912a4edcd3c341b7570aec4424188631f46b.zip |
clang-format: Enable formatting for .proto and .protodevel files.
Support for protocol buffer files seems complete enough.
llvm-svn: 199750
Diffstat (limited to 'clang/tools/clang-format/clang-format-diff.py')
-rwxr-xr-x | clang/tools/clang-format/clang-format-diff.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/tools/clang-format/clang-format-diff.py b/clang/tools/clang-format/clang-format-diff.py index d575a8a7c2a..376257b638d 100755 --- a/clang/tools/clang-format/clang-format-diff.py +++ b/clang/tools/clang-format/clang-format-diff.py @@ -47,7 +47,8 @@ def main(): help='custom pattern selecting file paths to reformat ' '(case sensitive, overrides -iregex)') parser.add_argument('-iregex', metavar='PATTERN', default= - r'.*\.(cpp|cc|c\+\+|cxx|c|cl|h|hpp|m|mm|inc|js)', + r'.*\.(cpp|cc|c\+\+|cxx|c|cl|h|hpp|m|mm|inc|js|proto' + r'|protodevel)', help='custom pattern selecting file paths to reformat ' '(case insensitive, overridden by -regex)') parser.add_argument( |