[clang] [Clang] Treat `ext_vector_type` as a regular type attribute (PR #130177)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 7 06:32:35 PST 2025
================
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 %s -verify -ast-dump | FileCheck %s
+
+// expected-no-diagnostics
+
+// CHECK: VarDecl {{.*}} x 'int __attribute__((ext_vector_type(4)))'
----------------
erichkeane wrote:
Oof, I hate the type printing here. Nothing to change for that, but it makes this much less useful for ast-dump.
Do me a favor and do an ast-dump for:
`using ExtVecType = decltype(x);`
Which should eventually do something like:
```
`-ExtVectorType 'int __attribute__((ext_vector_type(4)))' 4
`-BuiltinType 'int'
```
https://github.com/llvm/llvm-project/pull/130177
More information about the cfe-commits
mailing list