[clang] [clang][AST] Fix spaces in TypePrinter for some calling convs (PR #143160)
Matheus Izvekov via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 6 11:28:54 PDT 2025
================
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -triple aarch64 -ast-dump -ast-dump-filter foo %s \
+// RUN: | FileCheck --strict-whitespace %s
+
+// CHECK: {{foo1 'void \(\) __attribute__\(\(device_kernel\)\)'$}}
----------------
mizvekov wrote:
```suggestion
// CHECK: foo1 'void () __attribute__((device_kernel))'{{$}}
```
You don't need to apply the regex to the whole match, this makes it a little bit easier to read.
https://github.com/llvm/llvm-project/pull/143160
More information about the cfe-commits
mailing list