[clang] e486e48 - [clang] fix deprecation
Thorsten Schütt via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 9 08:43:01 PDT 2022
Author: Thorsten Schütt
Date: 2022-08-09T17:42:55+02:00
New Revision: e486e48c3d9e99e4c17d365bbc4b429c8e5b5999
URL: https://github.com/llvm/llvm-project/commit/e486e48c3d9e99e4c17d365bbc4b429c8e5b5999
DIFF: https://github.com/llvm/llvm-project/commit/e486e48c3d9e99e4c17d365bbc4b429c8e5b5999.diff
LOG: [clang] fix deprecation
Added:
Modified:
clang/lib/DirectoryWatcher/mac/DirectoryWatcher-mac.cpp
Removed:
################################################################################
diff --git a/clang/lib/DirectoryWatcher/mac/DirectoryWatcher-mac.cpp b/clang/lib/DirectoryWatcher/mac/DirectoryWatcher-mac.cpp
index bdc3895162898..b8788bae8171c 100644
--- a/clang/lib/DirectoryWatcher/mac/DirectoryWatcher-mac.cpp
+++ b/clang/lib/DirectoryWatcher/mac/DirectoryWatcher-mac.cpp
@@ -136,7 +136,7 @@ static void eventStreamCallback(ConstFSEventStreamRef Stream,
llvm::sys::path::filename(Path));
continue;
} else if (Flags & ModifyingFileEvents) {
- if (!getFileStatus(Path).hasValue()) {
+ if (!getFileStatus(Path).has_value()) {
Events.emplace_back(DirectoryWatcher::Event::EventKind::Removed,
llvm::sys::path::filename(Path));
} else {
More information about the cfe-commits
mailing list