[PATCH] D138466: Don't use Optional::getPointer (NFC)
Kazu Hirata via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 21 18:03:33 PST 2022
kazu created this revision.
Herald added subscribers: kadircet, arphaman, javed.absar, hiraditya.
Herald added a project: All.
kazu requested review of this revision.
Herald added projects: clang, LLVM, clang-tools-extra.
Herald added subscribers: cfe-commits, llvm-commits.
Since std::optional does not offer getPointer(), this patch replaces
X.getPointer() with &*X to make the migration from llvm::Optional to
std::optional easier.
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
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D138466
Files:
clang-tools-extra/clangd/ClangdServer.cpp
clang-tools-extra/clangd/CodeComplete.cpp
clang-tools-extra/clangd/ParsedAST.cpp
clang-tools-extra/clangd/TUScheduler.cpp
clang-tools-extra/clangd/index/Serialization.h
clang-tools-extra/clangd/tool/ClangdMain.cpp
clang-tools-extra/pseudo/tool/ClangPseudo.cpp
clang/include/clang/Basic/DarwinSDKInfo.h
clang/include/clang/Basic/TargetInfo.h
clang/include/clang/Sema/CodeCompleteConsumer.h
clang/lib/Frontend/ASTUnit.cpp
clang/lib/Sema/SemaCUDA.cpp
llvm/include/llvm/MC/MCObjectFileInfo.h
llvm/lib/CodeGen/ExpandMemCmp.cpp
llvm/lib/CodeGen/SafeStack.cpp
llvm/lib/CodeGen/ShadowStackGCLowering.cpp
llvm/lib/DebugInfo/PDB/Native/NativeTypeUDT.cpp
llvm/lib/Support/ToolOutputFile.cpp
llvm/lib/Transforms/Scalar/LoopFlatten.cpp
llvm/lib/Transforms/Scalar/LoopInstSimplify.cpp
llvm/lib/Transforms/Scalar/LoopRotation.cpp
llvm/lib/Transforms/Scalar/LoopSimplifyCFG.cpp
llvm/lib/Transforms/Scalar/LowerConstantIntrinsics.cpp
llvm/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
llvm/lib/Transforms/Scalar/ScalarizeMaskedMemIntrin.cpp
llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
llvm/tools/llvm-dwp/llvm-dwp.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138466.477041.patch
Type: text/x-patch
Size: 20916 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221122/f6aa1696/attachment.bin>
More information about the llvm-commits
mailing list