llvm-project/clang-tools-extra/cpp11-migrate/UseNullptr
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
..
NullptrActions.cpp Fix -use-nullptr problems with assert() 2013-02-17 16:45:54 +00:00
NullptrActions.h Add use-nullptr transform to cpp11-migrate 2013-01-22 18:31:49 +00:00
NullptrMatchers.cpp Add use-nullptr transform to cpp11-migrate 2013-01-22 18:31:49 +00:00
NullptrMatchers.h Add use-nullptr transform to cpp11-migrate 2013-01-22 18:31:49 +00:00
UseNullptr.cpp Propagate changes through no-op transforms 2013-02-15 19:38:28 +00:00
UseNullptr.h Add use-nullptr transform to cpp11-migrate 2013-01-22 18:31:49 +00:00