r199750 - clang-format: Enable formatting for .proto and .protodevel files.
Daniel Jasper
djasper at google.com
Tue Jan 21 07:40:01 PST 2014
Author: djasper
Date: Tue Jan 21 09:40:01 2014
New Revision: 199750
URL: http://llvm.org/viewvc/llvm-project?rev=199750&view=rev
Log:
clang-format: Enable formatting for .proto and .protodevel files.
Support for protocol buffer files seems complete enough.
Modified:
cfe/trunk/tools/clang-format/clang-format-diff.py
Modified: cfe/trunk/tools/clang-format/clang-format-diff.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-format/clang-format-diff.py?rev=199750&r1=199749&r2=199750&view=diff
==============================================================================
--- cfe/trunk/tools/clang-format/clang-format-diff.py (original)
+++ cfe/trunk/tools/clang-format/clang-format-diff.py Tue Jan 21 09:40:01 2014
@@ -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(
More information about the cfe-commits
mailing list