[StaticAnalyzer] Use std::optional in BugReporter.cpp (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 11 Dec 2022 05:11:29 +0000 (21:11 -0800)
committerKazu Hirata <kazu@google.com>
Sun, 11 Dec 2022 05:11:29 +0000 (21:11 -0800)
commit602af71c29a7553b68368443e6d938827a1dce8f
treed0b977a14c3547df9c587b0ee4fcdccecfb381c8
parentec94a5b71685d7d1d384fae5f6aa51b0c3d41037
[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