Skip to content

Commit c49406d

Browse files
committed
clang-format-diff.py: add the OpenCL file extension
It's handled correctly as a C-family language. llvm-svn: 197542
1 parent b97f44d commit c49406d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def main():
4747
help='custom pattern selecting file paths to reformat '
4848
'(case sensitive, override -iregex)')
4949
parser.add_argument('-iregex', metavar='PATTERN', default=
50-
r'.*\.(cpp|cc|c\+\+|cxx|c|h|hpp|m|mm|inc|js)',
50+
r'.*\.(cpp|cc|c\+\+|cxx|c|cl|h|hpp|m|mm|inc|js)',
5151
help='custom pattern selecting file paths to reformat '
5252
'(case insensitive, override -regex)')
5353
parser.add_argument(

0 commit comments

Comments
 (0)