[Lldb-commits] [lldb] 347c462 - [lldb] Use Any::has_value instead of ANy::hasValue (NFC)
Kazu Hirata via lldb-commits
lldb-commits at lists.llvm.org
Sat Aug 20 07:28:24 PDT 2022
Author: Kazu Hirata
Date: 2022-08-20T07:28:06-07:00
New Revision: 347c462e97bbb22ef9d95ef2f161e2eb82843f8e
URL: https://github.com/llvm/llvm-project/commit/347c462e97bbb22ef9d95ef2f161e2eb82843f8e
DIFF: https://github.com/llvm/llvm-project/commit/347c462e97bbb22ef9d95ef2f161e2eb82843f8e.diff
LOG: [lldb] Use Any::has_value instead of ANy::hasValue (NFC)
Added:
Modified:
lldb/include/lldb/Core/RichManglingContext.h
lldb/source/Core/RichManglingContext.cpp
Removed:
################################################################################
diff --git a/lldb/include/lldb/Core/RichManglingContext.h b/lldb/include/lldb/Core/RichManglingContext.h
index ecd11e93f044d..9636b7898f8f5 100644
--- a/lldb/include/lldb/Core/RichManglingContext.h
+++ b/lldb/include/lldb/Core/RichManglingContext.h
@@ -86,7 +86,7 @@ class RichManglingContext {
/// trait to deduce \a ParserT from a given InfoProvider, but unfortunately we
/// can't access CPlusPlusLanguage::MethodName from within the header.
template <class ParserT> static ParserT *get(llvm::Any parser) {
- assert(parser.hasValue());
+ assert(parser.has_value());
assert(llvm::any_isa<ParserT *>(parser));
return llvm::any_cast<ParserT *>(parser);
}
diff --git a/lldb/source/Core/RichManglingContext.cpp b/lldb/source/Core/RichManglingContext.cpp
index 64b18b401f2d6..08c9b280b8ccb 100644
--- a/lldb/source/Core/RichManglingContext.cpp
+++ b/lldb/source/Core/RichManglingContext.cpp
@@ -24,7 +24,7 @@ RichManglingContext::~RichManglingContext() {
void RichManglingContext::ResetCxxMethodParser() {
// If we want to support parsers for other languages some day, we need a
// switch here to delete the correct parser type.
- if (m_cxx_method_parser.hasValue()) {
+ if (m_cxx_method_parser.has_value()) {
assert(m_provider == PluginCxxLanguage);
delete get<CPlusPlusLanguage::MethodName>(m_cxx_method_parser);
m_cxx_method_parser.reset();
More information about the lldb-commits
mailing list