diff options
author | Kazu Hirata <kazu@google.com> | 2022-12-04 15:57:24 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-12-04 15:57:24 -0800 |
commit | 35b4fbb559d909a7edf64412c665e99748398ac4 (patch) | |
tree | ecb4e901b8a412166dfcaa7c09a6d705dc420f6d /clang/lib/DirectoryWatcher | |
parent | 122efef8ee9be57055d204d52c38700fe933c033 (diff) | |
download | llvm-35b4fbb559d909a7edf64412c665e99748398ac4.zip llvm-35b4fbb559d909a7edf64412c665e99748398ac4.tar.gz llvm-35b4fbb559d909a7edf64412c665e99748398ac4.tar.bz2 |
[clang] Use std::nullopt instead of None in comments (NFC)
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/DirectoryWatcher')
-rw-r--r-- | clang/lib/DirectoryWatcher/DirectoryScanner.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/DirectoryWatcher/DirectoryScanner.h b/clang/lib/DirectoryWatcher/DirectoryScanner.h index feb8b4e..42fe8ef 100644 --- a/clang/lib/DirectoryWatcher/DirectoryScanner.h +++ b/clang/lib/DirectoryWatcher/DirectoryScanner.h @@ -23,7 +23,7 @@ std::vector<DirectoryWatcher::Event> getAsFileEvents(const std::vector<std::string> &Scan); /// Gets status of file (or directory) at \p Path. -/// \returns llvm::None if \p Path doesn't exist or can't get the status. +/// \returns std::nullopt if \p Path doesn't exist or can't get the status. llvm::Optional<llvm::sys::fs::file_status> getFileStatus(llvm::StringRef Path); } // namespace clang |