llvm-project/clang/lib/Format
Daniel Jasper 9ecb0e96b8 clang-format: Don't corrupt macros with open braces.
Formatting:
  #define A { {
  #define B } }

Before:
  #define A               \
    {                     \
      { #define B }       \
    }

After:
  #define A               \
    {                     \
      {
  #define B               \
    }                     \
    }

This fixes llvm.org/PR22884.

llvm-svn: 232166
2015-03-13 13:32:11 +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: [OBJC] Don't indent 8 spaces in method declarations. 2015-03-12 22:13:45 +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: Recognize the .ts (TypeScript) extension as JavaScript. 2015-03-11 14:58:38 +00:00
FormatToken.cpp clang-format: Fix crash on invalid code. 2015-01-19 10:51:42 +00:00
FormatToken.h clang-format: [js] Support template strings. 2015-02-20 13:47:38 +00:00
Makefile
TokenAnnotator.cpp clang-format: When putting */& next to types, also wrap before them. 2015-03-12 15:04:53 +00:00
TokenAnnotator.h clang-format: Always align */& in multi-var DeclStmts. 2015-03-01 18:55:26 +00:00
UnwrappedLineFormatter.cpp clang-format: Don't corrupt macros with open braces. 2015-03-13 13:32:11 +00:00
UnwrappedLineFormatter.h clang-format: [JS] Support classes. 2015-02-18 17:14:05 +00:00
UnwrappedLineParser.cpp clang-format: [Java] Support anonymous classes after = and return. 2015-03-12 14:44:29 +00:00
UnwrappedLineParser.h clang-format: [Java] Support anonymous classes after = and return. 2015-03-12 14:44:29 +00:00
WhitespaceManager.cpp Make sure we initialize all values in WhitespaceManager::Change. 2015-03-03 14:21:48 +00:00
WhitespaceManager.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00