Skip to content

Commit 1b26ceb

Browse files
authored
[lldb] Remove data formatter for unavailable ImplicitlyUnwrappedOptional (#6257)
The alias `ImplicitlyUnwrappedOptional` was removed and made into an unavailable typealias some time ago. Key commits below. ``` commit 2008674 Date: Fri Jan 26 00:25:27 2018 -0800 Make ImplicitlyUnwrappedOptional<T> an unavailable typealias. ``` ``` commit f088237 Date: Wed Dec 27 13:24:15 2017 -0800 IUO: Generate Optional<T> rather than ImplicitlyUnwrappedOptional<T>. ... ImplicitlyUnwrappedOptional<T> is is dead, long live implicitly unwrapped Optional<T>! ``` (cherry picked from commit 92c0022)
1 parent 2f849dc commit 1b26ceb

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lldb/source/Plugins/Language/Swift/SwiftLanguage.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,6 @@ static void LoadSwiftFormatters(lldb::TypeCategoryImplSP swift_category_sp) {
462462

463463
// do not move the relative order of these - @unchecked needs to come first or
464464
// else pain will ensue
465-
AddSummary(swift_category_sp, swift_unchecked_optional_summary_sp,
466-
ConstString("^Swift.ImplicitlyUnwrappedOptional<.+>$"), true);
467465
AddSummary(swift_category_sp, swift_optional_summary_sp,
468466
ConstString("^Swift.Optional<.+>$"), true);
469467

@@ -477,12 +475,6 @@ static void LoadSwiftFormatters(lldb::TypeCategoryImplSP swift_category_sp) {
477475
AddSummary(swift_category_sp, swift_optional_summary_sp, ConstString("()?"),
478476
false);
479477

480-
AddCXXSynthetic(swift_category_sp,
481-
lldb_private::formatters::swift::
482-
SwiftUncheckedOptionalSyntheticFrontEndCreator,
483-
"Swift.Optional synthetic children",
484-
ConstString("^Swift.ImplicitlyUnwrappedOptional<.+>$"),
485-
optional_synth_flags, true);
486478
AddCXXSynthetic(
487479
swift_category_sp,
488480
lldb_private::formatters::swift::SwiftOptionalSyntheticFrontEndCreator,

0 commit comments

Comments
 (0)