Skip to content

Commit 3812de8

Browse files
committed
add comment re WouldEvenConsiderFormatting
1 parent 60555a6 commit 3812de8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ bool lldb_private::formatters::swift::SwiftOptionSetSummaryProvider::
168168
for (auto val_name : *m_cases) {
169169
llvm::APInt case_value = val_name.first;
170170
// Print single valued sets without using enclosing brackets.
171+
// `WouldEvenConsiderFormatting` can't opt out early because it
172+
// has only the type, but needs the value for this case.
171173
if (case_value == value) {
172174
ss << '.' << val_name.second;
173175
dest.assign(ss.GetData());

0 commit comments

Comments
 (0)