hanchenye-llvm-project/clang-tools-extra/cpp11-migrate
Edwin Vane 4ad00b46fb Fix -use-nullptr problems with assert()
If a cast expression (NullToPointer) is detected in a function-like macro
parameter, we should use the spelling location instead of the expansion
location. Using SourceManager::getFileLoc() fixes this problem.

Also added testcases for this bug.

Fixes: PR15279
Author: Tareq A Siraj <tareq.a.siraj@intel.com>
Reviewer: klimek
llvm-svn: 175399
2013-02-17 16:45:54 +00:00
..
LoopConvert Propagate changes through no-op transforms 2013-02-15 19:38:28 +00:00
UseNullptr Fix -use-nullptr problems with assert() 2013-02-17 16:45:54 +00:00
CMakeLists.txt Add use-nullptr transform to cpp11-migrate 2013-01-22 18:31:49 +00:00
Cpp11Migrate.cpp Propagate changes through no-op transforms 2013-02-15 19:38:28 +00:00
Makefile Add use-nullptr transform to cpp11-migrate 2013-01-22 18:31:49 +00:00
Transform.cpp Propagate changes through no-op transforms 2013-02-15 19:38:28 +00:00
Transform.h Propagate changes through no-op transforms 2013-02-15 19:38:28 +00:00
Transforms.cpp Add use-nullptr transform to cpp11-migrate 2013-01-22 18:31:49 +00:00
Transforms.h Port loop-convert into cpp11-migrate 2013-01-04 18:25:18 +00:00