[all-commits] [llvm/llvm-project] 34bcad: Use std::nullopt_t instead of NoneType (NFC)
kazutakahirata via All-commits
all-commits at lists.llvm.org
Wed Nov 23 14:16:19 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 34bcadc38c2240807cd079fd03b93fc96cf64c84
https://github.com/llvm/llvm-project/commit/34bcadc38c2240807cd079fd03b93fc96cf64c84
Author: Kazu Hirata <kazu at google.com>
Date: 2022-11-23 (Wed, 23 Nov 2022)
Changed paths:
M bolt/lib/Profile/DataAggregator.cpp
M bolt/lib/Profile/YAMLProfileWriter.cpp
M clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.cpp
M clang-tools-extra/clangd/support/ThreadsafeFS.h
M clang/include/clang/Analysis/Analyses/PostOrderCFGView.h
M clang/include/clang/Basic/DirectoryEntry.h
M clang/include/clang/Basic/FileEntry.h
M clang/include/clang/Sema/Template.h
M clang/lib/AST/ExprConstant.cpp
M clang/lib/Tooling/Transformer/Parsing.cpp
M lldb/include/lldb/Utility/Timeout.h
M lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
M lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h
M llvm/include/llvm/ADT/ArrayRef.h
M llvm/include/llvm/ADT/Optional.h
M llvm/include/llvm/ADT/StringMapEntry.h
M llvm/include/llvm/ADT/StringSet.h
M llvm/include/llvm/FuzzMutate/OpDescriptor.h
M llvm/include/llvm/Support/SMLoc.h
M llvm/lib/CodeGen/MIRParser/MILexer.cpp
M llvm/lib/Support/Optional.cpp
M mlir/include/mlir/IR/OpDefinition.h
M mlir/include/mlir/IR/OperationSupport.h
M mlir/include/mlir/Support/Timing.h
M mlir/lib/Support/Timing.cpp
Log Message:
-----------
Use std::nullopt_t instead of NoneType (NFC)
This patch replaces those occurrences of NoneType that would trigger
an error if the definition of NoneType were missing in None.h.
To keep this patch focused, I am deliberately not replacing None with
std::nullopt in this patch or updating comments. They will be
addressed in subsequent patches.
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
Differential Revision: https://reviews.llvm.org/D138539
More information about the All-commits
mailing list