From c722ae3e161a026956e721f43dfe51c602cfd82e Mon Sep 17 00:00:00 2001 From: Frederik Hennig <frederik.hennig@fau.de> Date: Fri, 4 Apr 2025 09:14:10 +0200 Subject: [PATCH] Fix clang-format off directive for older LLVM versions --- src/pystencilssfg/composer/gpu_composer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pystencilssfg/composer/gpu_composer.py b/src/pystencilssfg/composer/gpu_composer.py index aaffb02..aecb313 100644 --- a/src/pystencilssfg/composer/gpu_composer.py +++ b/src/pystencilssfg/composer/gpu_composer.py @@ -196,8 +196,8 @@ class GpuInvocationBuilder: ) return make_sequence( - "// clang-format off: " - "[pystencils-sfg] Formatting may add illegal spaces between angular brackets in `<<< >>>`.", + "/* clang-format off */", + "/* [pystencils-sfg] Formatting may add illegal spaces between angular brackets in `<<< >>>` */", SfgGpuKernelInvocation( self._kernel_handle, stmt_grid_size, @@ -205,7 +205,7 @@ class GpuInvocationBuilder: shared_memory_bytes=stmt_smem, stream=stmt_stream, ), - "// clang-format on", + "/* clang-format on */", ) def __call__(self, **kwargs: ExprLike) -> SfgCallTreeNode: -- GitLab