From 9ee9b9e17b10ebd599850bfc65e088d9da839a57 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Tue, 6 May 2014 06:48:52 +0000 Subject: [C++11] Use 'nullptr' git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208063 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/FileManager.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/clang/Basic/FileManager.h') diff --git a/include/clang/Basic/FileManager.h b/include/clang/Basic/FileManager.h index cc9e4e4079..023433b25b 100644 --- a/include/clang/Basic/FileManager.h +++ b/include/clang/Basic/FileManager.h @@ -49,7 +49,7 @@ class DirectoryEntry { const char *Name; // Name of the directory. friend class FileManager; public: - DirectoryEntry() : Name(0) {} + DirectoryEntry() : Name(nullptr) {} const char *getName() const { return Name; } }; @@ -74,7 +74,7 @@ class FileEntry { friend class FileManager; void closeFile() const { - File.reset(0); // rely on destructor to close File + File.reset(nullptr); // rely on destructor to close File } void operator=(const FileEntry &) LLVM_DELETED_FUNCTION; @@ -180,7 +180,7 @@ class FileManager : public RefCountedBase { public: FileManager(const FileSystemOptions &FileSystemOpts, - IntrusiveRefCntPtr FS = 0); + IntrusiveRefCntPtr FS = nullptr); ~FileManager(); /// \brief Installs the provided FileSystemStatCache object within @@ -241,10 +241,10 @@ public: /// \brief Open the specified file as a MemoryBuffer, returning a new /// MemoryBuffer if successful, otherwise returning null. llvm::MemoryBuffer *getBufferForFile(const FileEntry *Entry, - std::string *ErrorStr = 0, + std::string *ErrorStr = nullptr, bool isVolatile = false); llvm::MemoryBuffer *getBufferForFile(StringRef Filename, - std::string *ErrorStr = 0); + std::string *ErrorStr = nullptr); /// \brief Get the 'stat' information for the given \p Path. /// -- cgit v1.2.1