From: Ted Kremenek Date: Wed, 27 Jan 2010 00:37:54 +0000 (+0000) Subject: Add const version of ObjCMethodDecl::getCanonicalDecl(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13e635c55eb23f736d38abf9c954801bd6482db4;p=clang Add const version of ObjCMethodDecl::getCanonicalDecl(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94633 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DeclObjC.h b/include/clang/AST/DeclObjC.h index 0fb0db13bb..d12f3fbaa3 100644 --- a/include/clang/AST/DeclObjC.h +++ b/include/clang/AST/DeclObjC.h @@ -193,6 +193,9 @@ public: ImplementationControl impControl = None); virtual ObjCMethodDecl *getCanonicalDecl(); + const ObjCMethodDecl *getCanonicalDecl() const { + return const_cast(this)->getCanonicalDecl(); + } ObjCDeclQualifier getObjCDeclQualifier() const { return ObjCDeclQualifier(objcDeclQualifier);