[clang] [Clang] Treat `ext_vector_type` as a regular type attribute (PR #130177)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 6 14:13:17 PST 2025
================
@@ -78,7 +78,7 @@ typedef int __attribute__((ext_vector_type(0))) e4; // expected-e
// no support for vector enum type
enum { e_2 } x3 __attribute__((vector_size(64))); // expected-error {{invalid vector element type}}
-int x4 __attribute__((ext_vector_type(64))); // expected-error {{'ext_vector_type' attribute only applies to typedefs}}
+int x4 __attribute__((ext_vector_type(64)));
----------------
erichkeane wrote:
Can you do some operations here to check to make sure this spelling works right? Might be nice to find the ext_vector_type AST tests as well and add these cases.
https://github.com/llvm/llvm-project/pull/130177
More information about the cfe-commits
mailing list