Skip to content

Unified the use of character and string sequences. #127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 5, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions lib/Markup/AST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,11 @@ void llvm::markup::dump(const MarkupASTNode *Node, llvm::raw_ostream &OS,
unsigned indent) {
auto dumpChildren = [](const ArrayRef<const MarkupASTNode *> Children,
llvm::raw_ostream &OS, unsigned indent) {
OS << "\n";
OS << '\n';
for (auto Child = Children.begin(); Child != Children.end(); Child++) {
llvm::markup::dump(*Child, OS, indent + 1);
if (Child != Children.end() - 1)
OS << "\n";
OS << '\n';
}
};

Expand Down Expand Up @@ -390,10 +390,10 @@ void llvm::markup::dump(const MarkupASTNode *Node, llvm::raw_ostream &OS,
};

for (unsigned i = 0; i < indent; ++i) {
OS << " ";
OS << ' ';
}

OS << "(";
OS << '(';
switch (Node->getKind()) {
case llvm::markup::ASTNodeKind::Document: {
OS << "Document: Children=" << Node->getChildren().size();
Expand Down Expand Up @@ -485,15 +485,15 @@ void llvm::markup::dump(const MarkupASTNode *Node, llvm::raw_ostream &OS,
auto L = cast<Link>(Node);
OS << "Link: Destination=";
simpleEscapingPrint(L->getDestination(), OS);
OS << " " << "Children=" << L->getChildren().size();
OS << ' ' << "Children=" << L->getChildren().size();
dumpChildren(Node->getChildren(), OS, indent + 1);
break;
}
case llvm::markup::ASTNodeKind::Image: {
auto I = cast<Image>(Node);
OS << "Image: Destination=";
simpleEscapingPrint(I->getDestination(), OS);
OS << " " << "Children=" << I->getChildren().size();
OS << ' ' << "Children=" << I->getChildren().size();
dumpChildren(Node->getChildren(), OS, indent + 1);
break;
}
Expand All @@ -518,5 +518,5 @@ void llvm::markup::dump(const MarkupASTNode *Node, llvm::raw_ostream &OS,
default:
llvm_unreachable("Can't dump Markup AST Node: unknown node kind");
}
OS << ")";
OS << ')';
}