aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Serialization/ModuleManager.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-12-03 11:54:46 -0800
committerKazu Hirata <kazu@google.com>2022-12-03 11:54:46 -0800
commit5891420e6848e86a069dc6b7b73f175e22388f4a (patch)
tree99d82aa1d75dbd2abc6df791b87c384c49277431 /clang/lib/Serialization/ModuleManager.cpp
parent0c2f6e36f9b2d26a2665e38a76ae8a95c158c4c7 (diff)
downloadllvm-5891420e6848e86a069dc6b7b73f175e22388f4a.zip
llvm-5891420e6848e86a069dc6b7b73f175e22388f4a.tar.gz
llvm-5891420e6848e86a069dc6b7b73f175e22388f4a.tar.bz2
[clang] Use std::nullopt instead of None (NFC)
This patch mechanically replaces None with std::nullopt where the compiler would warn if None were deprecated. The intent is to reduce the amount of manual work required in migrating from Optional to std::optional. This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
Diffstat (limited to 'clang/lib/Serialization/ModuleManager.cpp')
-rw-r--r--clang/lib/Serialization/ModuleManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Serialization/ModuleManager.cpp b/clang/lib/Serialization/ModuleManager.cpp
index 544dac1..ae4ea61 100644
--- a/clang/lib/Serialization/ModuleManager.cpp
+++ b/clang/lib/Serialization/ModuleManager.cpp
@@ -445,7 +445,7 @@ void ModuleManager::visit(llvm::function_ref<bool(ModuleFile &M)> Visitor,
bool ModuleManager::lookupModuleFile(StringRef FileName, off_t ExpectedSize,
time_t ExpectedModTime,
Optional<FileEntryRef> &File) {
- File = None;
+ File = std::nullopt;
if (FileName == "-")
return false;