From: Daniel Jasper Date: Tue, 21 Jan 2014 15:40:01 +0000 (+0000) Subject: clang-format: Enable formatting for .proto and .protodevel files. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8af7ecd5d8a564a70fd6e78c12dfb6904d103d9d;p=clang clang-format: Enable formatting for .proto and .protodevel files. Support for protocol buffer files seems complete enough. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199750 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/clang-format/clang-format-diff.py b/tools/clang-format/clang-format-diff.py index d575a8a7c2..376257b638 100755 --- a/tools/clang-format/clang-format-diff.py +++ b/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(