Skip to content
Snippets Groups Projects
Commit c722ae3e authored by Frederik Hennig's avatar Frederik Hennig Committed by Christoph Alt
Browse files

Fix clang-format off directive for older LLVM versions

parent b1c47558
Branches
1 merge request!27Fix clang-format off directive for older LLVM versions
...@@ -196,8 +196,8 @@ class GpuInvocationBuilder: ...@@ -196,8 +196,8 @@ class GpuInvocationBuilder:
) )
return make_sequence( return make_sequence(
"// clang-format off: " "/* clang-format off */",
"[pystencils-sfg] Formatting may add illegal spaces between angular brackets in `<<< >>>`.", "/* [pystencils-sfg] Formatting may add illegal spaces between angular brackets in `<<< >>>` */",
SfgGpuKernelInvocation( SfgGpuKernelInvocation(
self._kernel_handle, self._kernel_handle,
stmt_grid_size, stmt_grid_size,
...@@ -205,7 +205,7 @@ class GpuInvocationBuilder: ...@@ -205,7 +205,7 @@ class GpuInvocationBuilder:
shared_memory_bytes=stmt_smem, shared_memory_bytes=stmt_smem,
stream=stmt_stream, stream=stmt_stream,
), ),
"// clang-format on", "/* clang-format on */",
) )
def __call__(self, **kwargs: ExprLike) -> SfgCallTreeNode: def __call__(self, **kwargs: ExprLike) -> SfgCallTreeNode:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment