We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
raw_ostream &
IndexSubset::dump
1 parent 2ea4316 commit a88bd15Copy full SHA for a88bd15
include/swift/AST/IndexSubset.h
@@ -207,7 +207,7 @@ class IndexSubset : public llvm::FoldingSetNode {
207
}
208
209
void print(llvm::raw_ostream &s = llvm::outs()) const;
210
- SWIFT_DEBUG_DUMPER(dump(llvm::raw_ostream &s = llvm::errs()));
+ SWIFT_DEBUG_DUMPER(dump());
211
212
int findNext(int startIndex) const;
213
int findFirst() const { return findNext(-1); }
lib/AST/IndexSubset.cpp
@@ -86,7 +86,8 @@ void IndexSubset::print(llvm::raw_ostream &s) const {
86
s << '}';
87
88
89
-void IndexSubset::dump(llvm::raw_ostream &s) const {
+void IndexSubset::dump() const {
90
+ auto &s = llvm::errs();
91
s << "(index_subset capacity=" << capacity << " indices=(";
92
interleave(getIndices(), [&s](unsigned i) { s << i; },
93
[&s] { s << ", "; });
0 commit comments