[clang] llvm::Optional::value() && => operator*/operator->
authorFangrui Song <i@maskray.me>
Sat, 17 Dec 2022 19:47:45 +0000 (19:47 +0000)
committerFangrui Song <i@maskray.me>
Sat, 17 Dec 2022 19:47:45 +0000 (19:47 +0000)
commitd1f475347518bdab387f21cda2281c0939a80f70
treee28146d86b2875fb80e50e9173a80285b51bf23b
parent76b11003728dc1e37a28d69db81fb7952c7486e9
[clang] llvm::Optional::value() && => operator*/operator->

std::optional::value() has undesired exception checking semantics and is
unavailable in older Xcode (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). The
call sites block std::optional migration.
clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
clang/lib/Sema/SemaRISCVVectorLookup.cpp
clang/unittests/Analysis/MacroExpansionContextTest.cpp
clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp