[cfe-commits] r171667 - /cfe/trunk/docs/ClangTools.rst

David Blaikie dblaikie at gmail.com
Mon Jan 7 08:39:54 PST 2013


On Mon, Jan 7, 2013 at 6:32 AM, Vane, Edwin <edwin.vane at intel.com> wrote:
> The null pointer conversion tool is coming shortly to cpp11-migrate.

FWIW, this could be implemented just as a Clang warning+fixit (GCC 4.8
has a -Wzero-as-null-pointer warning for this). Not sure if that would
obviate the need for adding similar functionality to the migration
tool or not. (essentially you could do migration by running clang in
-fixit mode across the codebase with only that warning enabled)

>
> -----Original Message-----
> From: cfe-commits-bounces at cs.uiuc.edu [mailto:cfe-commits-bounces at cs.uiuc.edu] On Behalf Of Dmitri Gribenko
> Sent: Sunday, January 06, 2013 3:19 PM
> To: cfe-commits at cs.uiuc.edu
> Subject: [cfe-commits] r171667 - /cfe/trunk/docs/ClangTools.rst
>
> Author: gribozavr
> Date: Sun Jan  6 14:19:09 2013
> New Revision: 171667
>
> URL: http://llvm.org/viewvc/llvm-project?rev=171667&view=rev
> Log:
> ClangTools doc: add ideas for new tools in clang-tools-extra to ensure that these ideas don't get lost
>
> Modified:
>     cfe/trunk/docs/ClangTools.rst
>
> Modified: cfe/trunk/docs/ClangTools.rst
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/ClangTools.rst?rev=171667&r1=171666&r2=171667&view=diff
> ==============================================================================
> --- cfe/trunk/docs/ClangTools.rst (original)
> +++ cfe/trunk/docs/ClangTools.rst Sun Jan  6 14:19:09 2013
> @@ -89,3 +89,14 @@
>  they'll be tracked here. The focus of this documentation is on the scope  and features of the tools for other tool developers; each tool should  provide its own user-focused documentation.
> +
> +Ideas for new Tools
> +-------------------
> +
> +* C++11 null pointer conversion tool.  Will convert all null pointer
> +constants
> +  (like ``NULL`` or ``0``) to C++11 ``nullptr``.
> +
> +* C++ cast conversion tool.  Will convert C-style casts (``(type)
> +value``) to
> +  appropriate C++ cast (``static_cast``, ``const_cast`` or
> +  ``reinterpret_cast``).
> +
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits



More information about the cfe-commits mailing list