Skip to content

Commit 13a4d6b

Browse files
committed
Add specific keyword so this is invalid when unsupported
1 parent 1a9bf54 commit 13a4d6b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

clang/include/clang/Basic/Attr.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1722,7 +1722,7 @@ def EnableIf : InheritableAttr {
17221722
}
17231723

17241724
def ExtVectorType : TypeAttr {
1725-
let Spellings = [GNU<"ext_vector_type">];
1725+
let Spellings = [RegularKeyword<"__vector_type">, GNU<"ext_vector_type">];
17261726
let Args = [ExprArgument<"NumElements">];
17271727
let Documentation = [ExtVectorTypeDocs];
17281728
}

clang/include/clang/Basic/AttrDocs.td

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,6 @@ template instantiation, so the value for ``T::number`` is known.
11161116
def ExtVectorTypeDocs : Documentation {
11171117
let Category = DocCatFunction;
11181118
let Content = [{
1119-
11201119
The ext_vector_type(N) attribute specifies that a type is a vector with N
11211120
elements, directly mapping to an LLVM vector type. Originally from OpenCL, it
11221121
allows element access the array subscript operator ``[]``, ``sN`` where ``N`` is

0 commit comments

Comments
 (0)