[StaticAnalyzer] Use std::optional in BugReporter.cpp (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 11 Dec 2022 04:54:38 +0000 (20:54 -0800)
committerKazu Hirata <kazu@google.com>
Sun, 11 Dec 2022 04:54:38 +0000 (20:54 -0800)
commitec94a5b71685d7d1d384fae5f6aa51b0c3d41037
treee2329a8ab147434bd108366e9c473a69f00fd6df
parente55cc7d11881f232ac19041b28fa46627c276577
[StaticAnalyzer] Use std::optional in BugReporter.cpp (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
clang/lib/StaticAnalyzer/Core/BugReporter.cpp