This is an archive of the discontinued LLVM Phabricator instance.

[clang-move] Ignore using decls which are defined in macros.
ClosedPublic

Authored by hokein on Jan 16 2017, 9:19 AM.

Details

Summary

Also ignore helpers which are defined in macro. Currently clang-move doesn't
handle macro well enough, especiall for complex macros. This patch will ignore
declarations in macros to make the behavior of clang-move more correct.

Diff Detail

Repository
rL LLVM

Event Timeline

hokein updated this revision to Diff 84570.Jan 16 2017, 9:19 AM
hokein retitled this revision from to [clang-move] Ignore using decls which are defined in macros..
hokein updated this object.
hokein added a reviewer: ioeric.
hokein added a subscriber: cfe-commits.
ioeric accepted this revision.Jan 16 2017, 9:27 AM
ioeric edited edge metadata.

Lg.

test/clang-move/no-move-macro-helpers.cpp
1 ↗(On Diff #84570)

Would be nice to add a test case where both A and f1 are moved.

19 ↗(On Diff #84570)

Check that this is not deleted in old cc.

This revision is now accepted and ready to land.Jan 16 2017, 9:27 AM
hokein updated this revision to Diff 84639.Jan 17 2017, 12:07 AM
hokein marked 2 inline comments as done.

Add more tests.

This revision was automatically updated to reflect the committed changes.