[clang-tidy] Use llvm::transformOptional (NFC)
authorKazu Hirata <kazu@google.com>
Thu, 15 Dec 2022 02:27:39 +0000 (18:27 -0800)
committerKazu Hirata <kazu@google.com>
Thu, 15 Dec 2022 02:27:39 +0000 (18:27 -0800)
commitc8942c643f7849e8f3aeeb1e6b06388888ba7590
tree302e594720091732890e5177a4225083181e4fd1
parent67ddafab30ccd3d8f87fd8b8d06198c426c6756e
[clang-tidy] Use llvm::transformOptional (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-tools-extra/clang-tidy/bugprone/ReservedIdentifierCheck.cpp