[cfe-commits] r84435 - /cfe/trunk/include/clang/AST/DeclObjC.h

steve naroff snaroff at apple.com
Sun Oct 18 14:49:41 PDT 2009


On Oct 18, 2009, at 4:25 PM, Daniel Dunbar wrote:

> Author: ddunbar
> Date: Sun Oct 18 15:25:46 2009
> New Revision: 84435
>
> URL: http://llvm.org/viewvc/llvm-project?rev=84435&view=rev
> Log:
> Add ObjCCategoryImplDecl::getName() -> StringRef, and a FIXME.
>
> Modified:
>    cfe/trunk/include/clang/AST/DeclObjC.h
>
> Modified: cfe/trunk/include/clang/AST/DeclObjC.h
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclObjC.h?rev=84435&r1=84434&r2=84435&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- cfe/trunk/include/clang/AST/DeclObjC.h (original)
> +++ cfe/trunk/include/clang/AST/DeclObjC.h Sun Oct 18 15:25:46 2009
> @@ -944,20 +944,29 @@
>
>   ObjCCategoryDecl *getCategoryClass() const;
>
> +  /// getName - Get the name of identifier for the class interface  
> associated
> +  /// with this implementation as a StringRef.
> +  //
> +  // FIXME: This is a bad API, we are overriding the  
> NamedDecl::getName, to mean
> +  // something different.

Why is getName() a "bad API"?

snaroff




More information about the cfe-commits mailing list