Fix for combined loop and nullptr convert tests
authorEdwin Vane <edwin.vane@intel.com>
Thu, 7 Feb 2013 18:49:23 +0000 (18:49 +0000)
committerEdwin Vane <edwin.vane@intel.com>
Thu, 7 Feb 2013 18:49:23 +0000 (18:49 +0000)
commit37fea69391468fac9ba32ac6c717c25eb0f670d1
tree082165da14787089bf25b06dd5d0943b1c496126
parent0749262a1148a73d110885602b4d9e9017a3f04d
Fix for combined loop and nullptr convert tests

The rewriter was previously reading the content buffer from the file itself.
Since we are now keeping the content in memory and writing to the file only
once, the rewriter's buffer (from the file) was not in sync with the
RefactoringTool's buffer. Adding an overrideFileContents call (similar to how
Clang-format handles for this) will resolve this issue.

Author: Jack Yang <jack.yang@intel.com>
Reviewers: gribozavr, klimek
llvm-svn: 174643
clang-tools-extra/cpp11-migrate/LoopConvert/LoopConvert.cpp
clang-tools-extra/cpp11-migrate/Transform.h
clang-tools-extra/cpp11-migrate/UseNullptr/UseNullptr.cpp
clang-tools-extra/test/cpp11-migrate/Combined/combined.cpp