diff --git a/Sema/SemaDecl.cpp b/Sema/SemaDecl.cpp index 69e8b832a5..3aaa112e02 100644 --- a/Sema/SemaDecl.cpp +++ b/Sema/SemaDecl.cpp @@ -1339,7 +1339,7 @@ void Sema::ImplCategoryMethodsVsIntfMethods(ObjcCategoryImplDecl *CatImplDecl, CheckProtocolMethodDefs(PDecl, IncompleteImpl, InsMap, ClsMap); } if (IncompleteImpl) - Diag(CatClassDecl->getCatLoc(), diag::warn_incomplete_impl_category, + Diag(CatClassDecl->getLocation(), diag::warn_incomplete_impl_category, CatClassDecl->getCatName()->getName()); } diff --git a/clang.xcodeproj/project.pbxproj b/clang.xcodeproj/project.pbxproj index 314ed3ea3c..6389e5fbc4 100644 --- a/clang.xcodeproj/project.pbxproj +++ b/clang.xcodeproj/project.pbxproj @@ -737,6 +737,7 @@ 08FB7793FE84155DC02AAC07 /* Project object */ = { isa = PBXProject; buildConfigurationList = 1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "clang" */; + compatibilityVersion = "Xcode 2.4"; hasScannedForEncodings = 1; mainGroup = 08FB7794FE84155DC02AAC07 /* clang */; projectDirPath = ""; diff --git a/include/clang/AST/DeclObjC.h b/include/clang/AST/DeclObjC.h index 7fb438d79f..5010cae124 100644 --- a/include/clang/AST/DeclObjC.h +++ b/include/clang/AST/DeclObjC.h @@ -477,7 +477,7 @@ public: ClassInterface->setListCategories(this); } - SourceLocation getCatLoc() const { return CatLoc; } + SourceLocation getLocation() const { return CatLoc; } static bool classof(const Decl *D) { return D->getKind() == ObjcCategory;