forked from OSchip/llvm-project
Changed declarations from Attr to InheritableAttr as they are already being processed that way semantically.
Patch thanks to Dean Sutherland! Reviewed by Eli Friedman. llvm-svn: 186598
This commit is contained in:
parent
2d512bcae6
commit
7b590d2684
|
@ -172,7 +172,7 @@ def AlignMac68k : InheritableAttr {
|
||||||
let SemaHandler = 0;
|
let SemaHandler = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
def AllocSize : Attr {
|
def AllocSize : InheritableAttr {
|
||||||
let Spellings = [GNU<"alloc_size">, CXX11<"gnu", "alloc_size">];
|
let Spellings = [GNU<"alloc_size">, CXX11<"gnu", "alloc_size">];
|
||||||
let Args = [VariadicUnsignedArgument<"Args">];
|
let Args = [VariadicUnsignedArgument<"Args">];
|
||||||
}
|
}
|
||||||
|
@ -326,7 +326,7 @@ def CXX11NoReturn : InheritableAttr {
|
||||||
let Subjects = [Function];
|
let Subjects = [Function];
|
||||||
}
|
}
|
||||||
|
|
||||||
def OpenCLKernel : Attr {
|
def OpenCLKernel : InheritableAttr {
|
||||||
let Spellings = [Keyword<"__kernel">, Keyword<"kernel">];
|
let Spellings = [Keyword<"__kernel">, Keyword<"kernel">];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -557,12 +557,12 @@ def ObjCNSObject : InheritableAttr {
|
||||||
let Spellings = [GNU<"NSObject">];
|
let Spellings = [GNU<"NSObject">];
|
||||||
}
|
}
|
||||||
|
|
||||||
def ObjCPreciseLifetime : Attr {
|
def ObjCPreciseLifetime : InheritableAttr {
|
||||||
let Spellings = [GNU<"objc_precise_lifetime">];
|
let Spellings = [GNU<"objc_precise_lifetime">];
|
||||||
let Subjects = [Var];
|
let Subjects = [Var];
|
||||||
}
|
}
|
||||||
|
|
||||||
def ObjCReturnsInnerPointer : Attr {
|
def ObjCReturnsInnerPointer : InheritableAttr {
|
||||||
let Spellings = [GNU<"objc_returns_inner_pointer">];
|
let Spellings = [GNU<"objc_returns_inner_pointer">];
|
||||||
let Subjects = [ObjCMethod];
|
let Subjects = [ObjCMethod];
|
||||||
}
|
}
|
||||||
|
@ -572,7 +572,7 @@ def ObjCRequiresSuper : InheritableAttr {
|
||||||
let Subjects = [ObjCMethod];
|
let Subjects = [ObjCMethod];
|
||||||
}
|
}
|
||||||
|
|
||||||
def ObjCRootClass : Attr {
|
def ObjCRootClass : InheritableAttr {
|
||||||
let Spellings = [GNU<"objc_root_class">];
|
let Spellings = [GNU<"objc_root_class">];
|
||||||
let Subjects = [ObjCInterface];
|
let Subjects = [ObjCInterface];
|
||||||
}
|
}
|
||||||
|
@ -692,7 +692,7 @@ def ObjCGC : Attr {
|
||||||
let ASTNode = 0;
|
let ASTNode = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
def ObjCOwnership : Attr {
|
def ObjCOwnership : InheritableAttr {
|
||||||
let Spellings = [GNU<"objc_ownership">];
|
let Spellings = [GNU<"objc_ownership">];
|
||||||
let Args = [IdentifierArgument<"Kind">];
|
let Args = [IdentifierArgument<"Kind">];
|
||||||
let ASTNode = 0;
|
let ASTNode = 0;
|
||||||
|
|
Loading…
Reference in New Issue