[PATCH] cpp11-migrate: Add '-supports' command line switch.

Guillaume Papin guillaume.papin at epitech.eu
Tue Jul 23 11:57:12 PDT 2013


Hi revane, arielbernal, tareqsiraj,

Note that this patch assume that this one has been accepted first:
http://llvm-reviews.chandlerc.com/D1196

The new command line switch '-supports' introduced by this patch allows the user
to enable multiple transforms automatically based on some requirements about the
compiler versions.

Such as:

  cpp11-migrate -supports clang-3.0 <args...>

This enable all transforms supported by the Clang since the version 3.0.

For reference this was the old implementation but changes have been requested:
http://llvm-reviews.chandlerc.com/D1154

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

Files:
  cpp11-migrate/AddOverride/AddOverride.cpp
  cpp11-migrate/Core/Transform.cpp
  cpp11-migrate/Core/Transform.h
  cpp11-migrate/Core/Transforms.cpp
  cpp11-migrate/Core/Transforms.h
  cpp11-migrate/LoopConvert/LoopConvert.cpp
  cpp11-migrate/ReplaceAutoPtr/ReplaceAutoPtr.cpp
  cpp11-migrate/UseAuto/UseAuto.cpp
  cpp11-migrate/UseNullptr/UseNullptr.cpp
  cpp11-migrate/tool/Cpp11Migrate.cpp
  docs/MigratorUsage.rst
  test/cpp11-migrate/Combined/compilers.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1202.1.patch
Type: text/x-patch
Size: 21863 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130723/7a69a6f4/attachment.bin>


More information about the cfe-commits mailing list