hanchenye-llvm-project/clang/lib/Format
Daniel Jasper a4499133b1 clang-format: Add ability to align assignment operators.
In Objective-C some style guides use a style where assignment operators are
aligned, in an effort to increase code readability. This patch adds an option
to the format library which allows this functionality. It is disabled by
default for all the included styles, so it must be explicitly enabled.

The option will change code such as:
  - (void)method {
      NSNumber *one = @1;
      NSNumber *twentyFive = @25;
  }

to:
  - (void)method {
      NSNumber *one        = @1;
      NSNumber *twentyFive = @25;
  }

Patch by Matt Oakes. Thank you!

Accidentally reformatted all the tests...

llvm-svn: 236100
2015-04-29 13:06: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: Don't wrap after short first segments of builder calls. 2015-04-24 10:08:09 +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: Add ability to align assignment operators. 2015-04-29 13:06:49 +00:00
FormatToken.cpp clang-format: Fix crash on invalid code. 2015-01-19 10:51:42 +00:00
FormatToken.h clang-format: Fix for #pragma option formatting. 2015-04-22 09:45:42 +00:00
Makefile
TokenAnnotator.cpp clang-format: Properly detect variable declarations with ObjC. 2015-04-23 13:58:40 +00:00
TokenAnnotator.h clang-format: Always align */& in multi-var DeclStmts. 2015-03-01 18:55:26 +00:00
UnwrappedLineFormatter.cpp clang-format: Fix selective indentaiton in nested blocks. 2015-04-29 08:29:26 +00:00
UnwrappedLineFormatter.h clang-format: Support nested block formatting with ColumnLimit=0. 2015-04-23 09:23:17 +00:00
UnwrappedLineParser.cpp clang-format: More selectively detect QT's "signals". 2015-04-24 07:50:34 +00:00
UnwrappedLineParser.h clang-format: [Java] Support anonymous classes after = and return. 2015-03-12 14:44:29 +00:00
WhitespaceManager.cpp clang-format: Add ability to align assignment operators. 2015-04-29 13:06:49 +00:00
WhitespaceManager.h clang-format: Add ability to align assignment operators. 2015-04-29 13:06:49 +00:00