[PATCH] D28228: [clang-move] Support moving enum declarations.

Eric Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 3 05:35:10 PST 2017


ioeric added a comment.

In https://reviews.llvm.org/D28228#633925, @hokein wrote:

> In https://reviews.llvm.org/D28228#633863, @ioeric wrote:
>
> > Do we consider enum helpers?
>
>
> This patch excludes enum helpers, only considers the enum declarations which are defined in old.h. 
>  Ideally, we should support enum helpers which are defined in old.cc, but that's another topic.


I mean, if a enum helper used in say only old cc, will it be moved? The question is related to https://reviews.llvm.org/D27673. You don't need to support enum helper now, but it would be nice to drop a comment somewhere.



================
Comment at: clang-move/ClangMove.h:140
+  /// old.h/cc.
+  void addMovedAndDeletedDecl(const NamedDecl *Decl);
+
----------------
Maybe just `addMovedDecl`? `move` indicates move and delete IMO. But you might need to explain what's really going on in the comment.


https://reviews.llvm.org/D28228





More information about the cfe-commits mailing list