#
fc275112 |
| 18-Feb-2015 |
Jacques Pienaar <jpienaar@google.com> |
clang-format: Space and triple angle braces.
Committing patch http://reviews.llvm.org/D6800.
llvm-svn: 229783
|
Revision tags: llvmorg-3.6.0-rc4 |
|
#
69963129 |
| 17-Feb-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Don't force a break after "endl" if everything fits on one line.
llvm-svn: 229486
|
#
d97d5d5c |
| 17-Feb-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix crasher.
llvm-svn: 229485
|
#
61005bc5 |
| 16-Feb-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Reverting a switch from LLVM_DELETED_FUNCTION to = delete; this test should not have changed.
llvm-svn: 229394
|
#
abc18920 |
| 15-Feb-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Removing LLVM_DELETED_FUNCTION, as MSVC 2012 was the last reason for requiring the macro. NFC; Clang edition.
llvm-svn: 229339
|
Revision tags: llvmorg-3.6.0-rc3 |
|
#
29d39d54 |
| 08-Feb-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Correctly mark preprocessor lines in child blocks.
This prevents contracting: auto lambda = []() { int a = 2 #if A + 2 #endif ; };
into: auto lambda
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
show more ...
|
#
33381f5e |
| 07-Feb-2015 |
Nico Weber <nicolasweber@gmx.de> |
clang-format: Format Objective-C try blocks like all the other try blocks.
Before:
@try { // ... } @finally { // ... }
Now:
@try { // ... } @finally { // ... }
This
clang-format: Format Objective-C try blocks like all the other try blocks.
Before:
@try { // ... } @finally { // ... }
Now:
@try { // ... } @finally { // ... }
This is consistent with how we format C++ try blocks and SEH try blocks. clang-format not doing this before was an implementation oversight.
This is dependent on BraceBreakingStyle. The snippet above is with the Attach style. Style Stroustrip for example still results in the "Before:" snippet, which makes sense since other blocks (try, else) break after '}' too.
llvm-svn: 228483
show more ...
|
#
30029c6b |
| 05-Feb-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix assert triggering on carriage returns.
llvm-svn: 228288
|
#
fac2371b |
| 04-Feb-2015 |
Nico Weber <nicolasweber@gmx.de> |
clang-format: Add support for SEH __try / __except / __finally blocks.
This lets clang-format format
__try { } __except(0) { }
and
__try { } __finally { }
correctly. __tr
clang-format: Add support for SEH __try / __except / __finally blocks.
This lets clang-format format
__try { } __except(0) { }
and
__try { } __finally { }
correctly. __try and __finally are keywords if `LangOpts.MicrosoftExt` is set, so this turns this on. This also enables a few other keywords, but it shouldn't overly perturb regular clang-format operation. __except is a context-sensitive keyword, so `AdditionalKeywords` needs to be passed around to a few more places.
Fixes PR22321.
llvm-svn: 228148
show more ...
|
Revision tags: llvmorg-3.6.0-rc2 |
|
#
47b35aea |
| 29-Jan-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix crasher caused by not properly setting dry-run.
llvm-svn: 227427
|
#
d1c13736 |
| 23-Jan-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix another crasher caused by incomplete macro code.
We did't properly mark all of an AnnotatedLine's children as finalized and thus would reformat the same tokens in different branche
clang-format: Fix another crasher caused by incomplete macro code.
We did't properly mark all of an AnnotatedLine's children as finalized and thus would reformat the same tokens in different branches of #if/#else sequences leading to invalid replacements.
llvm-svn: 226930
show more ...
|
#
7509216a |
| 23-Jan-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix incorrect classification of "*".
Before: *a = b *c;
After: *a = b * c;
llvm-svn: 226923
|
#
e4b48c63 |
| 21-Jan-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix crasher when splitting incomplete escape sequences.
llvm-svn: 226698
|
#
04b979dd |
| 21-Jan-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix crasher caused by incorrect resetting of token info.
llvm-svn: 226685
|
#
d1debfc2 |
| 21-Jan-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix bad memory access.
llvm-svn: 226680
|
#
fd725c06 |
| 21-Jan-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix use-heap-after-free bug.
Discovered by the awesome test case and ASAN.
llvm-svn: 226678
|
#
6fd5d646 |
| 20-Jan-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix AlwaysBreakBeforeMultilineStrings with ColumnLimit=0
Before: const char *x = "hello llvm";
After: const char *x = "hello llvm";
This fixes llvm.org/PR22245. Patch by Bi
clang-format: Fix AlwaysBreakBeforeMultilineStrings with ColumnLimit=0
Before: const char *x = "hello llvm";
After: const char *x = "hello llvm";
This fixes llvm.org/PR22245. Patch by Bill Meltsner, thank you!
llvm-svn: 226564
show more ...
|
#
9b79efb5 |
| 19-Jan-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix crasher on weird comments.
Crashing input: /\ / comment
llvm-svn: 226454
|
#
193cdd38 |
| 19-Jan-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix crasher on incomplete condition compilation.
Previously crashing input: void f( #if A ); #else #endif
llvm-svn: 226451
|
#
20e8c3be |
| 19-Jan-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix crash on invalid code.
Input "a<," made clang-format crash.
llvm-svn: 226450
|
#
675b4f83 |
| 19-Jan-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix clang-format crash on invalid code.
llvm-svn: 226449
|
#
9d22bcc5 |
| 19-Jan-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix assertion when trying to build a nullptr StringRef.
llvm-svn: 226448
|
#
2bd7a64d |
| 19-Jan-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix endless loop on incomplete try-catch-block.
llvm-svn: 226447
|
#
b1567c10 |
| 19-Jan-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Remove assert that isn't helpful.
This assert would trigger on: #d , = }
llvm-svn: 226446
|
Revision tags: llvmorg-3.6.0-rc1 |
|
#
00691cf3 |
| 12-Jan-2015 |
Alexander Kornienko <alexfh@google.com> |
Fix assertion in BreakableBlockComment (http://llvm.org/PR21916).
Reviewers: djasper
Reviewed By: djasper
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D6894
ll
Fix assertion in BreakableBlockComment (http://llvm.org/PR21916).
Reviewers: djasper
Reviewed By: djasper
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D6894
llvm-svn: 225628
show more ...
|