forked from OSchip/llvm-project
objc- checking for objc decl context range is unreliable and
subject to change. Check for equality instead. llvm-svn: 138238
This commit is contained in:
parent
23e578c94a
commit
899c365257
|
@ -894,8 +894,15 @@ public:
|
|||
}
|
||||
|
||||
bool isObjCContainer() const {
|
||||
return (DeclKind >= (int)Decl::ObjCCategory &&
|
||||
DeclKind <= (int)Decl::ObjCProtocol);
|
||||
switch (DeclKind) {
|
||||
case Decl::ObjCCategory:
|
||||
case Decl::ObjCCategoryImpl:
|
||||
case Decl::ObjCImplementation:
|
||||
case Decl::ObjCInterface:
|
||||
case Decl::ObjCProtocol:
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool isFunctionOrMethod() const {
|
||||
|
|
Loading…
Reference in New Issue