From ce6f709d87d0455b1162e99a13658bdfe4021c59 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Tue, 17 Dec 2013 21:35:24 +0000 Subject: [PATCH] None of these attributes currently make use of an AST node, so setting ASTNode = 0 to reduce complexity. No functional change intended. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197525 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/Attr.td | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/clang/Basic/Attr.td b/include/clang/Basic/Attr.td index b268c80c4c..1dc44d812c 100644 --- a/include/clang/Basic/Attr.td +++ b/include/clang/Basic/Attr.td @@ -222,6 +222,7 @@ class IgnoredAttr : Attr { def AddressSpace : TypeAttr { let Spellings = [GNU<"address_space">]; let Args = [IntArgument<"AddressSpace">]; + let ASTNode = 0; } def Alias : Attr { @@ -567,11 +568,13 @@ def Naked : InheritableAttr { def NeonPolyVectorType : TypeAttr { let Spellings = [GNU<"neon_polyvector_type">]; let Args = [IntArgument<"NumElements">]; + let ASTNode = 0; } def NeonVectorType : TypeAttr { let Spellings = [GNU<"neon_vector_type">]; let Args = [IntArgument<"NumElements">]; + let ASTNode = 0; } def ReturnsTwice : InheritableAttr { @@ -861,6 +864,7 @@ def ArcWeakrefUnavailable : InheritableAttr { def ObjCGC : TypeAttr { let Spellings = [GNU<"objc_gc">]; let Args = [IdentifierArgument<"Kind">]; + let ASTNode = 0; } def ObjCOwnership : InheritableAttr { @@ -892,6 +896,7 @@ def Uuid : InheritableAttr { def VectorSize : TypeAttr { let Spellings = [GNU<"vector_size">, CXX11<"gnu", "vector_size">]; let Args = [ExprArgument<"NumBytes">]; + let ASTNode = 0; } def VecTypeHint : InheritableAttr { @@ -1242,18 +1247,22 @@ def Win64 : IgnoredAttr { def Ptr32 : TypeAttr { let Spellings = [Keyword<"__ptr32">]; + let ASTNode = 0; } def Ptr64 : TypeAttr { let Spellings = [Keyword<"__ptr64">]; + let ASTNode = 0; } def SPtr : TypeAttr { let Spellings = [Keyword<"__sptr">]; + let ASTNode = 0; } def UPtr : TypeAttr { let Spellings = [Keyword<"__uptr">]; + let ASTNode = 0; } class MSInheritanceAttr : InheritableAttr { -- 2.40.0