llvm-project/clang/lib/Format
Daniel Jasper e12597cc23 [clang-format] Add support of consecutive declarations alignment
This allows clang-format to align identifiers in consecutive
declarations. This is useful for increasing the readability of the code
in the same way the alignment of assignations is.

The code is a slightly modified version of the consecutive assignment
alignment code. Currently only the identifiers are aligned, and there is
no support of alignment of the pointer star or reference symbol.

The patch also solve the issue of alignments not being possible due to
the ColumnLimit for both the existing AlignConsecutiveAligments and the
new AlignConsecutiveDeclarations.

Patch by Beren Minor, thank you.

Review: http://reviews.llvm.org/D12362
llvm-svn: 248999
2015-10-01 10:06:54 +00:00
..
BreakableToken.cpp clang-format: clang-format (NFC) 2015-06-17 13:08:06 +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 let a leading "template <..>" lead to wrapped initializers. 2015-08-27 11:59:31 +00:00
ContinuationIndenter.h [clang-format] Use in-class initializers to simplify constructor. 2015-06-12 14:39:08 +00:00
Encoding.h clang-format: Fix crasher when a UTF8 character is found in an escape 2015-07-20 23:28:07 +00:00
Format.cpp [clang-format] Add support of consecutive declarations alignment 2015-10-01 10:06:54 +00:00
FormatToken.cpp clang-format: Add initial #include sorting capabilities. 2015-09-23 08:30:47 +00:00
FormatToken.h clang-format: [JS] handle let (ES6) 2015-09-28 14:28:08 +00:00
Makefile
TokenAnnotator.cpp clang-format: Add a new brace style "custom" as well as flags to 2015-09-29 14:57:55 +00:00
TokenAnnotator.h clang-format: NFC. Add a function to test whether an annotated line 2015-06-17 09:43:56 +00:00
UnwrappedLineFormatter.cpp clang-format: Add a new brace style "custom" as well as flags to 2015-09-29 14:57:55 +00:00
UnwrappedLineFormatter.h clang-format: clang-format (NFC) 2015-06-17 13:08:06 +00:00
UnwrappedLineParser.cpp clang-format: Add a new brace style "custom" as well as flags to 2015-09-29 14:57:55 +00:00
UnwrappedLineParser.h clang-format: NFC. Cleanup after r237895. 2015-05-31 08:51:54 +00:00
WhitespaceManager.cpp [clang-format] Add support of consecutive declarations alignment 2015-10-01 10:06:54 +00:00
WhitespaceManager.h [clang-format] Add support of consecutive declarations alignment 2015-10-01 10:06:54 +00:00