summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2013-05-22 12:51:29 +0000
committerManuel Klimek <klimek@google.com>2013-05-22 12:51:29 +0000
commite573c3f7fc40e813559ab4ff1e7eec4f66f1a50f (patch)
treea5fcc07cb4cd9aeebc47bf84d36f977423e32479 /lib/CodeGen/CGExprAgg.cpp
parent6e6efa7ec880559b7dd3096423b2345c0ff21c4c (diff)
downloadclang-e573c3f7fc40e813559ab4ff1e7eec4f66f1a50f.tar.gz
clang-e573c3f7fc40e813559ab4ff1e7eec4f66f1a50f.tar.bz2
clang-e573c3f7fc40e813559ab4ff1e7eec4f66f1a50f.tar.xz
Makes whitespace management more consistent.
Instead of selectively storing some changes and directly generating replacements for others, we now notify the WhitespaceManager of the whitespace before every token (and optionally with more changes inside tokens). Then, we run over all whitespace in the very end in original source order, where we have all information available to correctly align comments and escaped newlines. The future direction is to pull more of the comment alignment implementation that is now in the BreakableToken into the WhitespaceManager. This fixes a bug when aligning comments or escaped newlines in unwrapped lines that are handled out of order: #define A \ f({ \ g(); \ }); ... now gets correctly layouted. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182467 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
0 files changed, 0 insertions, 0 deletions