Skip to content
Snippets Groups Projects
Commit e0407ebe authored by Aaron Ballman's avatar Aaron Ballman
Browse files

Type attribute do not get an AST node by default, so these statements can be...

Type attribute do not get an AST node by default, so these statements can be removed (it's inherited automatically from TypeAttr).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197710 91177308-0d34-0410-b5e6-96231b3b80d8
parent 51a64486
No related branches found
No related tags found
No related merge requests found
...@@ -177,6 +177,7 @@ class Attr { ...@@ -177,6 +177,7 @@ class Attr {
/// A type attribute is not processed on a declaration or a statement. /// A type attribute is not processed on a declaration or a statement.
class TypeAttr : Attr { class TypeAttr : Attr {
// By default, type attributes do not get an AST node.
let ASTNode = 0; let ASTNode = 0;
} }
...@@ -221,7 +222,6 @@ class IgnoredAttr : Attr { ...@@ -221,7 +222,6 @@ class IgnoredAttr : Attr {
def AddressSpace : TypeAttr { def AddressSpace : TypeAttr {
let Spellings = [GNU<"address_space">]; let Spellings = [GNU<"address_space">];
let Args = [IntArgument<"AddressSpace">]; let Args = [IntArgument<"AddressSpace">];
let ASTNode = 0;
} }
def Alias : Attr { def Alias : Attr {
...@@ -575,13 +575,11 @@ def Naked : InheritableAttr { ...@@ -575,13 +575,11 @@ def Naked : InheritableAttr {
def NeonPolyVectorType : TypeAttr { def NeonPolyVectorType : TypeAttr {
let Spellings = [GNU<"neon_polyvector_type">]; let Spellings = [GNU<"neon_polyvector_type">];
let Args = [IntArgument<"NumElements">]; let Args = [IntArgument<"NumElements">];
let ASTNode = 0;
} }
def NeonVectorType : TypeAttr { def NeonVectorType : TypeAttr {
let Spellings = [GNU<"neon_vector_type">]; let Spellings = [GNU<"neon_vector_type">];
let Args = [IntArgument<"NumElements">]; let Args = [IntArgument<"NumElements">];
let ASTNode = 0;
} }
def ReturnsTwice : InheritableAttr { def ReturnsTwice : InheritableAttr {
...@@ -872,7 +870,6 @@ def ArcWeakrefUnavailable : InheritableAttr { ...@@ -872,7 +870,6 @@ def ArcWeakrefUnavailable : InheritableAttr {
def ObjCGC : TypeAttr { def ObjCGC : TypeAttr {
let Spellings = [GNU<"objc_gc">]; let Spellings = [GNU<"objc_gc">];
let Args = [IdentifierArgument<"Kind">]; let Args = [IdentifierArgument<"Kind">];
let ASTNode = 0;
} }
def ObjCOwnership : InheritableAttr { def ObjCOwnership : InheritableAttr {
...@@ -904,7 +901,6 @@ def Uuid : InheritableAttr { ...@@ -904,7 +901,6 @@ def Uuid : InheritableAttr {
def VectorSize : TypeAttr { def VectorSize : TypeAttr {
let Spellings = [GNU<"vector_size">, CXX11<"gnu", "vector_size">]; let Spellings = [GNU<"vector_size">, CXX11<"gnu", "vector_size">];
let Args = [ExprArgument<"NumBytes">]; let Args = [ExprArgument<"NumBytes">];
let ASTNode = 0;
} }
def VecTypeHint : InheritableAttr { def VecTypeHint : InheritableAttr {
...@@ -1255,22 +1251,18 @@ def Win64 : IgnoredAttr { ...@@ -1255,22 +1251,18 @@ def Win64 : IgnoredAttr {
def Ptr32 : TypeAttr { def Ptr32 : TypeAttr {
let Spellings = [Keyword<"__ptr32">]; let Spellings = [Keyword<"__ptr32">];
let ASTNode = 0;
} }
def Ptr64 : TypeAttr { def Ptr64 : TypeAttr {
let Spellings = [Keyword<"__ptr64">]; let Spellings = [Keyword<"__ptr64">];
let ASTNode = 0;
} }
def SPtr : TypeAttr { def SPtr : TypeAttr {
let Spellings = [Keyword<"__sptr">]; let Spellings = [Keyword<"__sptr">];
let ASTNode = 0;
} }
def UPtr : TypeAttr { def UPtr : TypeAttr {
let Spellings = [Keyword<"__uptr">]; let Spellings = [Keyword<"__uptr">];
let ASTNode = 0;
} }
def MSInheritance : InheritableAttr { def MSInheritance : InheritableAttr {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment