summaryrefslogtreecommitdiff
path: root/unittests/Tooling/RefactoringTest.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-06-08 08:38:12 +0000
committerCraig Topper <craig.topper@gmail.com>2014-06-08 08:38:12 +0000
commitb23b4992370221b27d64fa5b1da01a52aa271bef (patch)
tree9e75ef10ad41e4a485a12e26383248f7f6f0e3ed /unittests/Tooling/RefactoringTest.cpp
parent085452490f953a5bb7b54827d99276029be1b6c6 (diff)
downloadclang-b23b4992370221b27d64fa5b1da01a52aa271bef.tar.gz
[C++11] Use 'nullptr'. Unittests edition.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210423 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Tooling/RefactoringTest.cpp')
-rw-r--r--unittests/Tooling/RefactoringTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/Tooling/RefactoringTest.cpp b/unittests/Tooling/RefactoringTest.cpp
index b1ed3c72be..d600880efb 100644
--- a/unittests/Tooling/RefactoringTest.cpp
+++ b/unittests/Tooling/RefactoringTest.cpp
@@ -236,7 +236,7 @@ public:
OutStream << Content;
OutStream.close();
const FileEntry *File = Context.Files.getFile(Path);
- assert(File != NULL);
+ assert(File != nullptr);
StringRef Found = TemporaryFiles.GetOrCreateValue(Name, Path.str()).second;
assert(Found == Path);
@@ -253,7 +253,7 @@ public:
// FIXME: Figure out whether there is a way to get the SourceManger to
// reopen the file.
std::unique_ptr<const llvm::MemoryBuffer> FileBuffer(
- Context.Files.getBufferForFile(Path, NULL));
+ Context.Files.getBufferForFile(Path, nullptr));
return FileBuffer->getBuffer();
}