Manuel Klimek
|
ae76f7f850
Support formatting of preprocessor branches.
|
12 years ago |
Alexander Kornienko
|
6967e786df
Added a comment and another test for the UT_ForIndentation option
|
12 years ago |
Alexander Kornienko
|
3d9ffcf3aa
Implemented tab usage only for indentation (http://llvm.org/PR17363)
|
12 years ago |
Alexander Kornienko
|
acf8e90b22
Correctly indent with tabs when whitespace starts from the column not divisible by TabWidth.
|
12 years ago |
Alexander Kornienko
|
2c2f729d10
When in pre-c++11 mode, treat _T("xxx") as a single string literal, repeat the _T() part around each fragment. This addresses http://llvm.org/PR17122
|
12 years ago |
Alexander Kornienko
|
73d845cbe2
Support for CR LF newlines.
|
12 years ago |
Alexander Kornienko
|
0b62cc30c9
Handle zero-width and double-width characters in string literals and comments.
|
12 years ago |
Daniel Jasper
|
c9346c996c
clang-format: Fix infinite loop in macro special case.
|
12 years ago |
Daniel Jasper
|
893ea8d0a6
clang-format: Make alignment of trailing comments optional ..
|
12 years ago |
Daniel Jasper
|
2a409b6212
Reformat clang-format's source files after r185822 and others.
|
12 years ago |
Daniel Jasper
|
cbe86cc538
Don't align "} // namespace" comments.
|
12 years ago |
Alexander Kornienko
|
22d0e2985d
Fixes incorrect indentation of line comments after break and re-alignment.
|
12 years ago |
Alexander Kornienko
|
2b2faa53ec
Insert a space at the start of a line comment in case it starts with an alphanumeric character.
|
12 years ago |
Manuel Klimek
|
b398701e4c
The second step in the token refactoring.
|
12 years ago |
Manuel Klimek
|
dcb3f2aab3
Make UnwrappedLines and AnnotatedToken contain pointers to FormatToken.
|
12 years ago |
Manuel Klimek
|
de008c0f3b
Major refactoring of BreakableToken.
|
12 years ago |
Manuel Klimek
|
854ca794c1
Fix aligning of comments.
|
12 years ago |
Manuel Klimek
|
23ad339cdb
Fix aligning of comments that are at the start of the line.
|
12 years ago |
Manuel Klimek
|
ebfb88c32a
Stop aligning trailing comments which are aligned with the next line.
|
12 years ago |
Manuel Klimek
|
ad3094b7d8
Use a SourceRange for the whitespace location in FormatToken.
|
12 years ago |
Manuel Klimek
|
0cd57b52c9
Fix uninitialized access error found by valgrind.
|
12 years ago |
Manuel Klimek
|
e573c3f7fc
Makes whitespace management more consistent.
|
12 years ago |
Manuel Klimek
|
967d9e935d
Fix style according to post-commit review comments.
|
12 years ago |
Manuel Klimek
|
7c9a93ec7c
Implements UseTab for clang-format.
|
12 years ago |
Daniel Jasper
|
2972d04963
Add option to align escaped newlines left.
|
12 years ago |
Alexander Kornienko
|
919398bb40
Unified token breaking logic: support for line comments.
|
12 years ago |
Alexander Kornienko
|
70ce7881fc
Unified token breaking logic for strings and block comments.
|
12 years ago |