[all-commits] [llvm/llvm-project] 3a77eb: [mlir/unittests] Use std::nullopt instead of None ...
kazutakahirata via All-commits
all-commits at lists.llvm.org
Sat Dec 3 19:08:15 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3a77eb669894f77ef30f61d3a4f9767596fd0fcd
https://github.com/llvm/llvm-project/commit/3a77eb669894f77ef30f61d3a4f9767596fd0fcd
Author: Kazu Hirata <kazu at google.com>
Date: 2022-12-03 (Sat, 03 Dec 2022)
Changed paths:
M mlir/unittests/IR/OperationSupportTest.cpp
M mlir/unittests/Pass/AnalysisManagerTest.cpp
M mlir/unittests/Pass/PassManagerTest.cpp
M mlir/unittests/TableGen/EnumsGenTest.cpp
M mlir/unittests/Transforms/DialectConversion.cpp
Log Message:
-----------
[mlir/unittests] Use std::nullopt instead of None (NFC)
This patch mechanically replaces None with std::nullopt where the
compiler would warn if None were deprecated. The intent is to reduce
the amount of manual work required in migrating from Optional to
std::optional.
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
Commit: 63b63c3dcd540c4182f1856b5570c7201cc4b3a9
https://github.com/llvm/llvm-project/commit/63b63c3dcd540c4182f1856b5570c7201cc4b3a9
Author: Kazu Hirata <kazu at google.com>
Date: 2022-12-03 (Sat, 03 Dec 2022)
Changed paths:
M flang/unittests/Optimizer/Builder/CharacterTest.cpp
M flang/unittests/Optimizer/Builder/ComplexTest.cpp
M flang/unittests/Optimizer/Builder/FIRBuilderTest.cpp
M flang/unittests/Optimizer/Builder/HLFIRToolsTest.cpp
M flang/unittests/Optimizer/Builder/Runtime/RuntimeCallTestBase.h
M flang/unittests/Optimizer/FortranVariableTest.cpp
Log Message:
-----------
[flang/unittests] Use std::nullopt instead of None (NFC)
This patch mechanically replaces None with std::nullopt where the
compiler would warn if None were deprecated. The intent is to reduce
the amount of manual work required in migrating from Optional to
std::optional.
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
Compare: https://github.com/llvm/llvm-project/compare/043aa1dbba15...63b63c3dcd54
More information about the All-commits
mailing list