Allow users to specify NULL like macros to be replaced
authorTareq A. Siraj <tareq.a.sriaj@intel.com>
Thu, 28 Mar 2013 16:06:59 +0000 (16:06 +0000)
committerTareq A. Siraj <tareq.a.sriaj@intel.com>
Thu, 28 Mar 2013 16:06:59 +0000 (16:06 +0000)
commitc2aa348dd0ab28df2974f9c94c750277d04a5e8a
tree05fba4734d27de1d6f337fd23397c65131102cf1
parent01186359798e9a95b474c05b1e2239ab03b082c0
Allow users to specify NULL like macros to be replaced

-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.

Reviewers: revane, klimek, gribozavr
llvm-svn: 178243
clang-tools-extra/cpp11-migrate/Transforms.h
clang-tools-extra/cpp11-migrate/UseNullptr/NullptrActions.cpp
clang-tools-extra/cpp11-migrate/UseNullptr/NullptrActions.h
clang-tools-extra/docs/UseNullptrTransform.rst
clang-tools-extra/docs/cpp11-migrate.rst
clang-tools-extra/test/cpp11-migrate/UseNullptr/macros.cpp