forked from OSchip/llvm-project
4fe43002f8
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. llvm-svn: 182467 |
||
---|---|---|
.. | ||
BreakableToken.cpp | ||
BreakableToken.h | ||
CMakeLists.txt | ||
Format.cpp | ||
Makefile | ||
TokenAnnotator.cpp | ||
TokenAnnotator.h | ||
UnwrappedLineParser.cpp | ||
UnwrappedLineParser.h | ||
WhitespaceManager.cpp | ||
WhitespaceManager.h |