This is an archive of the discontinued LLVM Phabricator instance.

StmtPrinter: allow customizing the end-of-line character
ClosedPublic

Authored by george.karpenkov on Sep 7 2018, 5:17 PM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

Eugene.Zelenko set the repository for this revision to rC Clang.
Eugene.Zelenko added a project: Restricted Project.
NoQ accepted this revision.Sep 13 2018, 5:48 PM

Looks great to me and pretty trivial, should somebody who's more familiar with this code take a look?

clang/lib/AST/StmtPrinter.cpp
72 ↗(On Diff #164549)

This variable is used so many times, maybe give it a shorter name?

This revision is now accepted and ready to land.Sep 13 2018, 5:48 PM
This revision was automatically updated to reflect the committed changes.