[PATCH] D51824: StmtPrinter: allow customizing the end-of-line character

2018-09-14 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL342311: StmtPrinter: allow customizing the end-of-line character (authored by george.karpenkov, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit:

[PATCH] D51824: StmtPrinter: allow customizing the end-of-line character

2018-09-13 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. Looks great to me and pretty trivial, should somebody who's more familiar with this code take a look? Comment at: clang/lib/AST/StmtPrinter.cpp:72 PrintingPolicy Policy; +

[PATCH] D51824: StmtPrinter: allow customizing the end-of-line character

2018-09-07 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov created this revision. george.karpenkov added reviewers: NoQ, Eugene.Zelenko. Some environments need a different end-of-line character, namely, dot graphs. There, "\l" must be used to left-adjust the printed text, as "\n" centers everything printed.