summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CheckObjCInstMethSignature.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-08-21 23:58:43 +0000
committerTed Kremenek <kremenek@apple.com>2009-08-21 23:58:43 +0000
commitcdf5f4aa7ba5c776bdd50a04603783c0d331e2dc (patch)
tree8ea841bf0354a2b86cb35e239882ad5fe6ac6f0f /clang/lib/Analysis/CheckObjCInstMethSignature.cpp
parent00aeae98b5da228d335da1b8b6340ec1dba0ddf2 (diff)
downloadbcm5719-llvm-cdf5f4aa7ba5c776bdd50a04603783c0d331e2dc.tar.gz
bcm5719-llvm-cdf5f4aa7ba5c776bdd50a04603783c0d331e2dc.zip
Remove 'AnalysisContext::setDecl()', as we the Decl associated with an
AnalysisContext should never change. Along the way, propagate some constness around. llvm-svn: 79701
Diffstat (limited to 'clang/lib/Analysis/CheckObjCInstMethSignature.cpp')
-rw-r--r--clang/lib/Analysis/CheckObjCInstMethSignature.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/lib/Analysis/CheckObjCInstMethSignature.cpp b/clang/lib/Analysis/CheckObjCInstMethSignature.cpp
index c208a7c323e..aae1e1da3b8 100644
--- a/clang/lib/Analysis/CheckObjCInstMethSignature.cpp
+++ b/clang/lib/Analysis/CheckObjCInstMethSignature.cpp
@@ -36,10 +36,10 @@ static bool AreTypesCompatible(QualType Derived, QualType Ancestor,
return C.typesAreCompatible(Derived, Ancestor);
}
-static void CompareReturnTypes(ObjCMethodDecl* MethDerived,
- ObjCMethodDecl* MethAncestor,
- BugReporter& BR, ASTContext& Ctx,
- ObjCImplementationDecl* ID) {
+static void CompareReturnTypes(const ObjCMethodDecl *MethDerived,
+ const ObjCMethodDecl *MethAncestor,
+ BugReporter &BR, ASTContext &Ctx,
+ const ObjCImplementationDecl *ID) {
QualType ResDerived = MethDerived->getResultType();
QualType ResAncestor = MethAncestor->getResultType();
@@ -69,11 +69,11 @@ static void CompareReturnTypes(ObjCMethodDecl* MethDerived,
}
}
-void clang::CheckObjCInstMethSignature(ObjCImplementationDecl* ID,
+void clang::CheckObjCInstMethSignature(const ObjCImplementationDecl* ID,
BugReporter& BR) {
- ObjCInterfaceDecl* D = ID->getClassInterface();
- ObjCInterfaceDecl* C = D->getSuperClass();
+ const ObjCInterfaceDecl* D = ID->getClassInterface();
+ const ObjCInterfaceDecl* C = D->getSuperClass();
if (!C)
return;
OpenPOWER on IntegriCloud