Closed begroh closed 3 years ago
I wonder if it would be useful to have a runAndExportChanges
that is symmetrical to runAndSave
.
I wonder if it would be useful to have a
runAndExportChanges
that is symmetrical torunAndSave
.
It wouldn't be totally analogous since we call runAndSave
on the RefactoringTool and pass in the MetaToolFactory, but I suppose we could pass the tool in and call run
with this
.
Can we add a test case to validate the generated yaml?
Describe your changes Add an
exportChanges()
function toMetaToolFactory
that outputs all of the replacements generated by a tool's run in YAML format. These changes can be applied to a project withclang-apply-replacements
.Testing performed Compiled a tool against this branch and ran
runAndExportChanges
. Replacements file was successfully generated and applied.