[PATCH] cpp11-migrate: Add command line option to enables transforms automatically

Guillaume Papin guillaume.papin at epitech.eu
Tue Jul 16 09:20:52 PDT 2013


Hi revane, arielbernal, tareqsiraj,

cpp11-migrate: Add command line option to enables transforms automatically.

It is now possible to states what compilers we wants to support on the command
line, the tranform will be selected automatically.

The new option is `-toward` by I'm open to suggestion for the name (`-to`,
`-targets`, `-P` for platform, ...):

As stated in the documentation the usage is like this (to migrate toward Clang
>= 3.2 and GCC >= 4.7):

  cpp11-migrate -toward clang-3.2 -toward gcc-4.7 <args...>

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

Files:
  cpp11-migrate/AddOverride/AddOverride.cpp
  cpp11-migrate/AddOverride/AddOverride.h
  cpp11-migrate/Core/Transforms.cpp
  cpp11-migrate/Core/Transforms.h
  cpp11-migrate/tool/Cpp11Migrate.cpp
  docs/MigratorUsage.rst
  test/cpp11-migrate/Combined/compilers.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1154.1.patch
Type: text/x-patch
Size: 22065 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130716/00438d7f/attachment.bin>


More information about the cfe-commits mailing list