[PATCH] cp11-migrate: Integration with LibFormat.

Guillaume Papin guillaume.papin at epitech.eu
Wed Jul 10 02:10:51 PDT 2013


Hi revane, arielbernal, tareqsiraj,

With this changes cpp11-migrate now supports reformatting the changes made by
the migration. The changes are reformatted according to a given style (a YAML
configuration file or a builtin style, one of: LLVM, Mozilla, Google, Chromium).

There is some refactoring going on here as well, mostly FileOverrides and
SourceOverrides. The latter now owns his own rewriter and replacements can be
applied to it directly using SourceOverrides::applyReplacements(). This permits
both the Transform class and the SourceOverrides::reformatChanges() method to
re-use the same code without replicating the Rewriter stuff.

http://llvm-reviews.chandlerc.com/D1120

Files:
  cpp11-migrate/Core/CMakeLists.txt
  cpp11-migrate/Core/FileOverrides.cpp
  cpp11-migrate/Core/FileOverrides.h
  cpp11-migrate/Core/SyntaxCheck.cpp
  cpp11-migrate/Core/SyntaxCheck.h
  cpp11-migrate/Core/Transform.cpp
  cpp11-migrate/Core/Transform.h
  cpp11-migrate/tool/Cpp11Migrate.cpp
  cpp11-migrate/tool/Makefile
  docs/MigratorUsage.rst
  test/cpp11-migrate/Core/reformat.cpp
  unittests/cpp11-migrate/CMakeLists.txt
  unittests/cpp11-migrate/FileOverridesTest.cpp
  unittests/cpp11-migrate/IncludeExcludeTest.cpp
  unittests/cpp11-migrate/Makefile
  unittests/cpp11-migrate/PerfSupportTest.cpp
  unittests/cpp11-migrate/TransformTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1120.1.patch
Type: text/x-patch
Size: 42873 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130710/3b7fdadb/attachment.bin>


More information about the cfe-commits mailing list