clang-1/unittests
Manuel Klimek e573c3f7fc 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
2013-05-22 12:51:29 +00:00
..
AST [Doc parsing] Provide diagnostics for unknown documentation 2013-05-03 23:15:20 +00:00
ASTMatchers Take a stab at trying to unbreak the makefile build. 2013-05-14 12:21:21 +00:00
Basic [Preprocessor] For the MacroExpands preprocessor callback, also pass the MacroArgs object that provides information about 2013-05-03 22:31:32 +00:00
Format Makes whitespace management more consistent. 2013-05-22 12:51:29 +00:00
Frontend Nuke SetUpBuildDumpLog. 2013-01-20 01:58:28 +00:00
Lex [Lexer] Improve Lexer::getSourceText() when the given range deals with function macro arguments. 2013-05-16 21:37:39 +00:00
Tooling Let clang-format move the cursor appropriately. 2013-05-21 12:21:39 +00:00
CMakeLists.txt Initial version of formatting library. 2012-12-03 18:12:45 +00:00
Makefile Dont use/link ARCMT, StaticAnalyzer and Rewriter to clang when the user 2012-12-13 16:09:42 +00:00