llvm-project/clang/lib/Format
Daniel Jasper 29d39d54e7 clang-format: Correctly mark preprocessor lines in child blocks.
This prevents contracting:
  auto lambda = []() {
    int a = 2
  #if A
            + 2
  #endif
        ;
  };

into:
  auto lambda = []() { int a = 2
  #if A + 2
  #endif ; };

Which is obviously BAD.

This fixes llvm.org/PR22496.

llvm-svn: 228522
2015-02-08 09:34:49 +00:00
..
BreakableToken.cpp clang-format: Fix crasher when splitting incomplete escape sequences. 2015-01-21 19:50:35 +00:00
BreakableToken.h Fix assertion in BreakableBlockComment (http://llvm.org/PR21916). 2015-01-12 13:11:12 +00:00
CMakeLists.txt clang-format: Factor out UnwrappedLineFormatter into a separate file. 2014-12-10 19:00:42 +00:00
ContinuationIndenter.cpp clang-format: Fix incorrect handling of leading whitespace. 2015-01-31 07:05:46 +00:00
ContinuationIndenter.h clang-format: Revamp nested block formatting. 2014-12-12 09:40:58 +00:00
Encoding.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00
Format.cpp clang-format: Fix assert triggering on carriage returns. 2015-02-05 11:05:31 +00:00
FormatToken.cpp clang-format: Fix crash on invalid code. 2015-01-19 10:51:42 +00:00
FormatToken.h clang-format: Add support for SEH __try / __except / __finally blocks. 2015-02-04 15:26:27 +00:00
Makefile
TokenAnnotator.cpp clang-format: Add support for SEH __try / __except / __finally blocks. 2015-02-04 15:26:27 +00:00
TokenAnnotator.h clang-format: Fix crasher caused by incorrect resetting of token info. 2015-01-21 18:35:47 +00:00
UnwrappedLineFormatter.cpp clang-format: Format Objective-C try blocks like all the other try blocks. 2015-02-07 01:57:32 +00:00
UnwrappedLineFormatter.h clang-format: Add support for SEH __try / __except / __finally blocks. 2015-02-04 15:26:27 +00:00
UnwrappedLineParser.cpp clang-format: Correctly mark preprocessor lines in child blocks. 2015-02-08 09:34:49 +00:00
UnwrappedLineParser.h clang-format: [Java] Support Java enums. 2014-11-13 15:56:28 +00:00
WhitespaceManager.cpp clang-format: Fix crasher caused by not properly setting dry-run. 2015-01-29 10:47:14 +00:00
WhitespaceManager.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00