[PATCH] Allow users to specify NULL like macros to be replaced

Tareq A. Siraj tareq.a.siraj at intel.com
Mon Mar 25 14:29:11 PDT 2013


Hi revane, klimek,

-use-nullptr only replaced macro named NULL and ignored any user defined
macros that behaved like NULL. This patch introduces -user-null-macros
command line option to let users specify their custom NULL like macros.

- Added a -user-null-macros command line option that takes a
  comma-separated list of user defined macros to be replaced when using
  the -use-nullptr transform.
- Added documentation.
- Updated testcase to reflect current behavior.
- Whitespace fixes.

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

Files:
  cpp11-migrate/Transforms.h
  cpp11-migrate/UseNullptr/NullptrActions.cpp
  cpp11-migrate/UseNullptr/NullptrActions.h
  docs/UseNullptrTransform.rst
  docs/cpp11-migrate.rst
  test/cpp11-migrate/UseNullptr/macros.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D574.1.patch
Type: text/x-patch
Size: 7558 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130325/7416b598/attachment.bin>


More information about the cfe-commits mailing list