r210039 - Fix comment vs function name mismatch

Richard Smith richard at metafoo.co.uk
Mon Jun 2 14:15:56 PDT 2014


On Mon, Jun 2, 2014 at 11:50 AM, Hans Wennborg <hans at hanshq.net> wrote:

> Author: hans
> Date: Mon Jun  2 13:50:54 2014
> New Revision: 210039
>
> URL: http://llvm.org/viewvc/llvm-project?rev=210039&view=rev
> Log:
> Fix comment vs function name mismatch
>
> Modified:
>     cfe/trunk/lib/CodeGen/CGVTables.h
>
> Modified: cfe/trunk/lib/CodeGen/CGVTables.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGVTables.h?rev=210039&r1=210038&r2=210039&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/CodeGen/CGVTables.h (original)
> +++ cfe/trunk/lib/CodeGen/CGVTables.h Mon Jun  2 13:50:54 2014
> @@ -99,7 +99,7 @@ public:
>                               VTableAddressPointsMapTy& AddressPoints);
>
>
> -  /// GetAddrOfVTable - Get the address of the VTT for the given record
> decl.
> +  /// GetAddrOfVTT - Get the address of the VTT for the given record decl.
>

For future reference, the preferred fix would be to remove the function
name entirely. (We usually also add \brief here, but that's redundant here
since a single-line doc comment is implicitly \brief.)


>    llvm::GlobalVariable *GetAddrOfVTT(const CXXRecordDecl *RD);
>
>    /// EmitVTTDefinition - Emit the definition of the given vtable.
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140602/f2640c85/attachment.html>


More information about the cfe-commits mailing list