summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-12-19 18:16:00 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-12-19 18:16:00 +0000
commitd618025910c4a45a598475f2009e75fefc2d4b3c (patch)
treead472f4cd4f358d622371f46f30bf2ae5d5115f8
parent58fa493955c0d8dc762a14b33046cef38dd2f1b8 (diff)
downloadbcm5719-llvm-d618025910c4a45a598475f2009e75fefc2d4b3c.tar.gz
bcm5719-llvm-d618025910c4a45a598475f2009e75fefc2d4b3c.zip
Type attribute do not get an AST node by default, so these statements can be removed (it's inherited automatically from TypeAttr).
llvm-svn: 197710
-rw-r--r--clang/include/clang/Basic/Attr.td10
1 files changed, 1 insertions, 9 deletions
diff --git a/clang/include/clang/Basic/Attr.td b/clang/include/clang/Basic/Attr.td
index 4c5f8697446..27fc3938aba 100644
--- a/clang/include/clang/Basic/Attr.td
+++ b/clang/include/clang/Basic/Attr.td
@@ -177,6 +177,7 @@ class Attr {
/// A type attribute is not processed on a declaration or a statement.
class TypeAttr : Attr {
+ // By default, type attributes do not get an AST node.
let ASTNode = 0;
}
@@ -221,7 +222,6 @@ class IgnoredAttr : Attr {
def AddressSpace : TypeAttr {
let Spellings = [GNU<"address_space">];
let Args = [IntArgument<"AddressSpace">];
- let ASTNode = 0;
}
def Alias : Attr {
@@ -575,13 +575,11 @@ 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 {
@@ -872,7 +870,6 @@ def ArcWeakrefUnavailable : InheritableAttr {
def ObjCGC : TypeAttr {
let Spellings = [GNU<"objc_gc">];
let Args = [IdentifierArgument<"Kind">];
- let ASTNode = 0;
}
def ObjCOwnership : InheritableAttr {
@@ -904,7 +901,6 @@ 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 {
@@ -1255,22 +1251,18 @@ 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;
}
def MSInheritance : InheritableAttr {
OpenPOWER on IntegriCloud