[cfe-commits] [PATCH] Added use-nullptr transform into cpp11-migrate tool

Tareq A. Siraj tareq.a.siraj at intel.com
Mon Jan 14 08:50:46 PST 2013


Hi klimek,

This transform converts the usage of null pointer constants (e.g. NULL, 0,
etc.) in legacy C++ code and converts them to use the new C++11 nullptr
keyword.
 - Added use-nullptr transform.
 - Added C++11 support to the final syntax check. Used ArgumentAdjuster class
   to add -std=c++11 option to the command line options.
 - Added tests for use-nullptr transform.
 - Added tests that exercises both loop-convert and use-nullptr in the source
   file.


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

Files:
  cpp11-migrate/CMakeLists.txt
  cpp11-migrate/Makefile
  cpp11-migrate/UseNullptr/NullptrActions.h
  cpp11-migrate/UseNullptr/NullptrMatchers.cpp
  cpp11-migrate/UseNullptr/NullptrMatchers.h
  cpp11-migrate/UseNullptr/UseNullptr.cpp
  cpp11-migrate/UseNullptr/NullptrActions.cpp
  cpp11-migrate/UseNullptr/UseNullptr.h
  cpp11-migrate/Cpp11Migrate.cpp
  cpp11-migrate/Transforms.cpp
  test/cpp11-migrate/UseNullptr/basic_failing.cpp
  test/cpp11-migrate/UseNullptr/Inputs/basic.h
  test/cpp11-migrate/UseNullptr/basic.cpp
  test/cpp11-migrate/Combined/combined.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D295.1.patch
Type: text/x-patch
Size: 22551 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130114/8112fc6a/attachment.bin>


More information about the cfe-commits mailing list