Improve indentation in debugging output

This commit is contained in:
Timofey Solonin
2022-11-17 23:06:13 +08:00
parent 3c401a1c7e
commit 3f366947e4
11 changed files with 167 additions and 128 deletions

View File

@@ -1708,7 +1708,7 @@ public:
SWIFT_DEBUG_DUMP;
/// Dump this solution.
void dump(raw_ostream &OS) const LLVM_ATTRIBUTE_USED;
void dump(raw_ostream &OS, unsigned indent) const LLVM_ATTRIBUTE_USED;
};
/// Describes the differences between several solutions to the same
@@ -6433,9 +6433,10 @@ public:
bool isSymmetricOperator() const;
bool isUnaryOperator() const;
void print(llvm::raw_ostream &Out, SourceManager *SM, unsigned indent = 0) const {
void print(llvm::raw_ostream &Out, SourceManager *SM,
unsigned indent = 0) const {
Out << "disjunction choice ";
Choice->print(Out, SM);
Choice->print(Out, SM, indent);
}
operator Constraint *() { return Choice; }