clang-format-diff.py: add the OpenCL file extension

It's handled correctly as a C-family language.

llvm-svn: 197542
This commit is contained in:
Alp Toker
2013-12-18 00:58:58 +00:00
parent b97f44d9ef
commit c49406d18c

View File

@@ -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(