summaryrefslogtreecommitdiffstats
path: root/lib/Sema/SemaDeclObjC.cpp
diff options
context:
space:
mode:
authorrdivacky <rdivacky@FreeBSD.org>2010-04-03 07:51:34 +0000
committerrdivacky <rdivacky@FreeBSD.org>2010-04-03 07:51:34 +0000
commitac616af773f5062edaaf1a0bb5610b49a22ac41f (patch)
tree1e9c2f464daf7966d11aa31cf069fa1bc63fdb21 /lib/Sema/SemaDeclObjC.cpp
parent07b2cfcdb817cc0790420f159a313d61e7241cb9 (diff)
downloadFreeBSD-src-ac616af773f5062edaaf1a0bb5610b49a22ac41f.zip
FreeBSD-src-ac616af773f5062edaaf1a0bb5610b49a22ac41f.tar.gz
Update clang to r100285.
Diffstat (limited to 'lib/Sema/SemaDeclObjC.cpp')
-rw-r--r--lib/Sema/SemaDeclObjC.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp
index 9bc0846..0c47e63 100644
--- a/lib/Sema/SemaDeclObjC.cpp
+++ b/lib/Sema/SemaDeclObjC.cpp
@@ -431,6 +431,11 @@ ActOnStartCategoryInterface(SourceLocation AtInterfaceLoc,
// Class extensions require a special treatment. Use an existing one.
// Note that 'getClassExtension()' can return NULL.
CDecl = IDecl->getClassExtension();
+ if (IDecl->getImplementation()) {
+ Diag(ClassLoc, diag::err_class_extension_after_impl) << ClassName;
+ Diag(IDecl->getImplementation()->getLocation(),
+ diag::note_implementation_declared);
+ }
}
if (!CDecl) {
OpenPOWER on IntegriCloud