Changed the Decl::Kind enum of the ObjCPropertyDecl class, so that it follows
the pattern of the other Decl classes. llvm-svn: 49399
This commit is contained in:
parent
0a14b5b649
commit
506215c708
|
@ -42,7 +42,7 @@ public:
|
||||||
ObjCCategoryImpl,
|
ObjCCategoryImpl,
|
||||||
ObjCImplementation,
|
ObjCImplementation,
|
||||||
ObjCProtocol,
|
ObjCProtocol,
|
||||||
PropertyDecl,
|
ObjCProperty,
|
||||||
// ScopedDecl
|
// ScopedDecl
|
||||||
// TypeDecl
|
// TypeDecl
|
||||||
Typedef,
|
Typedef,
|
||||||
|
|
|
@ -952,7 +952,7 @@ private:
|
||||||
IdentifierInfo *SetterName; // setter name of NULL if no setter
|
IdentifierInfo *SetterName; // setter name of NULL if no setter
|
||||||
|
|
||||||
ObjCPropertyDecl(SourceLocation L)
|
ObjCPropertyDecl(SourceLocation L)
|
||||||
: Decl(PropertyDecl, L), PropertyDecls(0), NumPropertyDecls(0),
|
: Decl(ObjCProperty, L), PropertyDecls(0), NumPropertyDecls(0),
|
||||||
PropertyAttributes(OBJC_PR_noattr), GetterName(0), SetterName(0) {}
|
PropertyAttributes(OBJC_PR_noattr), GetterName(0), SetterName(0) {}
|
||||||
public:
|
public:
|
||||||
static ObjCPropertyDecl *Create(ASTContext &C, SourceLocation L);
|
static ObjCPropertyDecl *Create(ASTContext &C, SourceLocation L);
|
||||||
|
@ -983,7 +983,7 @@ public:
|
||||||
void setSetterName(IdentifierInfo *Id) { SetterName = Id; }
|
void setSetterName(IdentifierInfo *Id) { SetterName = Id; }
|
||||||
|
|
||||||
static bool classof(const Decl *D) {
|
static bool classof(const Decl *D) {
|
||||||
return D->getKind() == PropertyDecl;
|
return D->getKind() == ObjCProperty;
|
||||||
}
|
}
|
||||||
static bool classof(const ObjCPropertyDecl *D) { return true; }
|
static bool classof(const ObjCPropertyDecl *D) { return true; }
|
||||||
};
|
};
|
||||||
|
|
|
@ -194,7 +194,7 @@ void Decl::addDeclKind(Kind k) {
|
||||||
case ObjCImplementation: nObjCImplementationDecls++; break;
|
case ObjCImplementation: nObjCImplementationDecls++; break;
|
||||||
case ObjCCategoryImpl: nObjCCategoryImpl++; break;
|
case ObjCCategoryImpl: nObjCCategoryImpl++; break;
|
||||||
case ObjCCompatibleAlias: nObjCCompatibleAlias++; break;
|
case ObjCCompatibleAlias: nObjCCompatibleAlias++; break;
|
||||||
case PropertyDecl: nObjCPropertyDecl++; break;
|
case ObjCProperty: nObjCPropertyDecl++; break;
|
||||||
case LinkageSpec: nLinkageSpecDecl++; break;
|
case LinkageSpec: nLinkageSpecDecl++; break;
|
||||||
case FileScopeAsm: nFileScopeAsmDecl++; break;
|
case FileScopeAsm: nFileScopeAsmDecl++; break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue