]> granicus.if.org Git - clang/commit
"This patch uses the new ObjCImplDecl class to merge Sema::ImplMethodsVsClassMethods...
authorChris Lattner <sabre@nondot.org>
Sun, 1 Mar 2009 00:56:52 +0000 (00:56 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 1 Mar 2009 00:56:52 +0000 (00:56 +0000)
commitcddc88800bbd1213ec70ae5153c6a7f2e380fd8d
tree9af8418ddc85517ea1448c7f018116d70464b7c5
parent0db28c59266808b9bf4fb72c2db80ce9f2948b74
"This patch uses the new ObjCImplDecl class to merge  Sema::ImplMethodsVsClassMethods and Sema::ImplCategoryMethodsVsIntfMethods methods.
And now, when clang check a class implementation to find unimplemented methods, it also checks all methods from the class extensions (unnamed categories).

There is also a test case to check this warning.

This patch contains also a minor update for ObjCImplDecl . getNameAsCString and getNameAsString now returns an empty string instead of crashing for unnamed categories."

Patch by Jean-Daniel Dupas!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65744 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclObjC.h
lib/Sema/Sema.h
lib/Sema/SemaDeclObjC.cpp
test/SemaObjC/method-undef-extension-warn-1.m [new file with mode: 0644]