[clang-tools-extra] r281453 - [clang-tidy] Add check 'misc-use-after-move'

Chandler Carruth via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 14 03:46:17 PDT 2016


On Wed, Sep 14, 2016 at 3:38 AM Martin Bohme via cfe-commits <
cfe-commits at lists.llvm.org> wrote:

> Author: mboehme
> Date: Wed Sep 14 05:29:32 2016
> New Revision: 281453
>
> URL: http://llvm.org/viewvc/llvm-project?rev=281453&view=rev
> Log:
> [clang-tidy] Add check 'misc-use-after-move'
>
> Summary:
> The check warns if an object is used after it has been moved, without an
> intervening reinitialization.
>

While I'm excited to see this go in anywhere, I have to say I'm a bit sad
it isn't going in as a warning and instead inside clang-tidy. This has been
a much requested warning from Clang for many years.

Is there a concise description of why this design was chosen? Are there
specific problems that make it infeasible to be a warnings? Is there maybe
a plan to move it to a warning after some set of issues are addressed?


>
> See user-facing documentation for details.
>

In general, I suspect at least some more context should be provided in
change descriptions. =]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160914/ba52dcdb/attachment.html>


More information about the cfe-commits mailing list