diff options
Diffstat (limited to 'clang/unittests/Tooling/RewriterTestContext.h')
-rw-r--r-- | clang/unittests/Tooling/RewriterTestContext.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/unittests/Tooling/RewriterTestContext.h b/clang/unittests/Tooling/RewriterTestContext.h index f02ba1a9ffb..6353cec5962 100644 --- a/clang/unittests/Tooling/RewriterTestContext.h +++ b/clang/unittests/Tooling/RewriterTestContext.h @@ -53,7 +53,7 @@ class RewriterTestContext { const FileEntry *Entry = Files.getVirtualFile(Name, Source->getBufferSize(), 0); Sources.overrideFileContents(Entry, Source); - assert(Entry != NULL); + assert(Entry != nullptr); return Sources.createFileID(Entry, SourceLocation(), SrcMgr::C_User); } @@ -71,7 +71,7 @@ class RewriterTestContext { OutStream << Content; OutStream.close(); const FileEntry *File = Files.getFile(Path); - assert(File != NULL); + assert(File != nullptr); StringRef Found = TemporaryFiles.GetOrCreateValue(Name, Path.str()).second; assert(Found == Path); @@ -103,7 +103,7 @@ class RewriterTestContext { // FIXME: Figure out whether there is a way to get the SourceManger to // reopen the file. std::unique_ptr<const llvm::MemoryBuffer> FileBuffer( - Files.getBufferForFile(Path, NULL)); + Files.getBufferForFile(Path, nullptr)); return FileBuffer->getBuffer(); } |