aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/AST/Decl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h
index 5da94c0e4b..748abb2782 100644
--- a/include/clang/AST/Decl.h
+++ b/include/clang/AST/Decl.h
@@ -156,10 +156,11 @@ public:
const ScopedDecl *getNextDeclarator() const { return NextDeclarator; }
void setNextDeclarator(ScopedDecl *N) { NextDeclarator = N; }
- // Implement isa/cast/dyncast/etc. - true for all ValueDecl's and TypeDecl's.
+ // Implement isa/cast/dyncast/etc - true for all ValueDecl's and TypeDecl's.
static bool classof(const Decl *D) {
return (D->getKind() >= Function && D->getKind() <= EnumConstant) ||
- (D->getKind() >= Typedef && D->getKind() <= Enum);
+ (D->getKind() >= Typedef && D->getKind() <= Enum) ||
+ D->getKind() == ObjcProtocol || D->getKind() == ObjcInterface;
}
static bool classof(const ScopedDecl *D) { return true; }
};