r197542 - clang-format-diff.py: add the OpenCL file extension
Alp Toker
alp at nuanti.com
Tue Dec 17 16:58:58 PST 2013
Author: alp
Date: Tue Dec 17 18:58:58 2013
New Revision: 197542
URL: http://llvm.org/viewvc/llvm-project?rev=197542&view=rev
Log:
clang-format-diff.py: add the OpenCL file extension
It's handled correctly as a C-family language.
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=197542&r1=197541&r2=197542&view=diff
==============================================================================
--- cfe/trunk/tools/clang-format/clang-format-diff.py (original)
+++ cfe/trunk/tools/clang-format/clang-format-diff.py Tue Dec 17 18:58:58 2013
@@ -47,7 +47,7 @@ def main():
help='custom pattern selecting file paths to reformat '
'(case sensitive, override -iregex)')
parser.add_argument('-iregex', metavar='PATTERN', default=
- r'.*\.(cpp|cc|c\+\+|cxx|c|h|hpp|m|mm|inc|js)',
+ r'.*\.(cpp|cc|c\+\+|cxx|c|cl|h|hpp|m|mm|inc|js)',
help='custom pattern selecting file paths to reformat '
'(case insensitive, override -regex)')
parser.add_argument(
More information about the cfe-commits
mailing list