This is an archive of the discontinued LLVM Phabricator instance.

[change-namespace] add an option to dump changed files in YAML.
ClosedPublic

Authored by ioeric on Feb 13 2017, 8:30 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

ioeric created this revision.Feb 13 2017, 8:30 AM
hokein added inline comments.Feb 13 2017, 8:52 AM
change-namespace/tool/ClangChangeNamespace.cpp
68 ↗(On Diff #88206)

dump_result maybe a clearer name, which also is consistent with clang-move's.

137 ↗(On Diff #88206)

Is this duplicated as we already have "dump_results" option now?

ioeric updated this revision to Diff 88208.Feb 13 2017, 8:57 AM
ioeric marked 2 inline comments as done.
  • Addressed review comments.
change-namespace/tool/ClangChangeNamespace.cpp
137 ↗(On Diff #88206)

I'd like this to be default since this produces readable results.

hokein accepted this revision.Feb 13 2017, 9:21 AM
hokein added inline comments.
change-namespace/tool/ClangChangeNamespace.cpp
68 ↗(On Diff #88206)

Nit: Also change the variable name to DumpResult.

137 ↗(On Diff #88206)

OK, it is up to you.

This revision is now accepted and ready to land.Feb 13 2017, 9:21 AM
ioeric added inline comments.Feb 13 2017, 9:24 AM
change-namespace/tool/ClangChangeNamespace.cpp
68 ↗(On Diff #88206)

Since I am also dumping output as plain text, I named this DumpYAML for clarity.

This revision was automatically updated to reflect the committed changes.