Skip to content

Commit 1b29c18

Browse files
committed
[CI] enable code-format-helper for .cl files
In clang-format, OpenCL .cl file uses default C++ formatting. There are many pull-requests in libclc project that change OpenCL files. It is beneficial to enable clang-format for them in CI.
1 parent 68806b9 commit 1b29c18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/git/code-format-helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def filter_changed_files(self, changed_files: List[str]) -> List[str]:
186186
filtered_files = []
187187
for path in changed_files:
188188
_, ext = os.path.splitext(path)
189-
if ext in (".cpp", ".c", ".h", ".hpp", ".hxx", ".cxx", ".inc", ".cppm"):
189+
if ext in (".cpp", ".c", ".h", ".hpp", ".hxx", ".cxx", ".inc", ".cppm", ".cl"):
190190
filtered_files.append(path)
191191
elif ext == "" and self.should_include_extensionless_file(path):
192192
filtered_files.append(path)

0 commit comments

Comments
 (0)