]> granicus.if.org Git - clang/commitdiff
clang-format: Enable formatting for .proto and .protodevel files.
authorDaniel Jasper <djasper@google.com>
Tue, 21 Jan 2014 15:40:01 +0000 (15:40 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 21 Jan 2014 15:40:01 +0000 (15:40 +0000)
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

tools/clang-format/clang-format-diff.py

index d575a8a7c2adbf967914d48ff4fa31f13047a163..376257b638dc1f1ccc449237ff83966c13015e97 100755 (executable)
@@ -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(