#
31e95540 |
| 04-Dec-2013 |
Alexander Kornienko <alexfh@google.com> |
Leave constructor initializer lists on one line in styles with no column limit.
Summary: Allow tryFitMultipleLinesInOne join unwrapped lines when ContinuationIndenter::mustBreak doesn't agree. But d
Leave constructor initializer lists on one line in styles with no column limit.
Summary: Allow tryFitMultipleLinesInOne join unwrapped lines when ContinuationIndenter::mustBreak doesn't agree. But don't merge any lines, that are separate in the input.
Reviewers: djasper
Reviewed By: djasper
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D2321
llvm-svn: 196378
show more ...
|
#
a48a12cf |
| 03-Dec-2013 |
Alexander Kornienko <alexfh@google.com> |
Create a separate file for JS-specific unit tests.
Reviewers: djasper
Reviewed By: djasper
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D2307
llvm-svn: 196266
|
Revision tags: llvmorg-3.4.0-rc2 |
|
#
0e81f1ad |
| 02-Dec-2013 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix excessive formatting caused by r195954.
Due to a bug in the patch, clang-format would more or less simply format all multi-line comments.
llvm-svn: 196080
|
#
cabdd738 |
| 29-Nov-2013 |
Alexander Kornienko <alexfh@google.com> |
Added LanguageStandard::LS_JavaScript to gate all JS-specific parsing.
Summary: Use LS_JavaScript for files ending with ".js". Added support for ">>>=" operator.
Reviewers: djasper, klimek
Reviewe
Added LanguageStandard::LS_JavaScript to gate all JS-specific parsing.
Summary: Use LS_JavaScript for files ending with ".js". Added support for ">>>=" operator.
Reviewers: djasper, klimek
Reviewed By: djasper
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D2242
llvm-svn: 195961
show more ...
|
#
38c82408 |
| 29-Nov-2013 |
Daniel Jasper <djasper@google.com> |
clang-format: Extends formatted ranges to subsequent lines comments.
Before: int aaaa; // This line is formatted. // The comment continues .. // .. here.
Befor
clang-format: Extends formatted ranges to subsequent lines comments.
Before: int aaaa; // This line is formatted. // The comment continues .. // .. here.
Before: int aaaa; // This line is formatted. // The comment continues .. // .. here.
This fixes llvm.org/PR17914.
llvm-svn: 195954
show more ...
|
#
1556b593 |
| 29-Nov-2013 |
Daniel Jasper <djasper@google.com> |
clang-format: Correctly handle Qt's Q_SLOTS.
This should fix llvm.org/PR17241. Maybe it sticks this time :-).
llvm-svn: 195953
|
#
e40caf9a |
| 29-Nov-2013 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix bad indentation of nested blocks.
Before: DEBUG( // { f(); });
After: DEBUG( // { f(); });
Also add additional test to selected formatting of individual statements
clang-format: Fix bad indentation of nested blocks.
Before: DEBUG( // { f(); });
After: DEBUG( // { f(); });
Also add additional test to selected formatting of individual statements in nested blocks.
llvm-svn: 195952
show more ...
|
#
9c199568 |
| 28-Nov-2013 |
Daniel Jasper <djasper@google.com> |
clang-format: Improve selective formatting of nested statements.
Previously, clang-format could create quite corrupt formattings if individual lines of nested blocks (e.g. in "DEBUG({})" or lambdas)
clang-format: Improve selective formatting of nested statements.
Previously, clang-format could create quite corrupt formattings if individual lines of nested blocks (e.g. in "DEBUG({})" or lambdas) were used. With this patch, it tries to extend the formatted regions to leave around some reasonable format without always formatting the entire surrounding statement.
llvm-svn: 195925
show more ...
|
#
fd1d7002 |
| 26-Nov-2013 |
Alexander Kornienko <alexfh@google.com> |
Changed non-printable characters in the test to the escaped form. Apparently, not all tools display non-printable characters ;)
llvm-svn: 195761
|
#
71d95d6e |
| 26-Nov-2013 |
Alexander Kornienko <alexfh@google.com> |
Fix crash in getStringSplit.
Summary: getStringSplit used to crash, when trying to split a long string literal containing both printable and unprintable multi-byte UTF-8 characters.
Reviewers: djas
Fix crash in getStringSplit.
Summary: getStringSplit used to crash, when trying to split a long string literal containing both printable and unprintable multi-byte UTF-8 characters.
Reviewers: djasper, klimek
Reviewed By: djasper
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D2268
llvm-svn: 195728
show more ...
|
#
5500f616 |
| 25-Nov-2013 |
Daniel Jasper <djasper@google.com> |
clang-format: Refactor calculation of lines intersecting with -lines.
No functional changes intended. However, it seems to have found a buggy behavior in one of the tests. I think this structure is
clang-format: Refactor calculation of lines intersecting with -lines.
No functional changes intended. However, it seems to have found a buggy behavior in one of the tests. I think this structure is generally desirable and it will make a planned bugfix significantly easier.
llvm-svn: 195634
show more ...
|
#
84c47a10 |
| 23-Nov-2013 |
Daniel Jasper <djasper@google.com> |
clang-format: Support Qt's slot access specifiers.
This fixes llvm.org/PR17241.
llvm-svn: 195555
|
#
40bc7466 |
| 23-Nov-2013 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix incorrect space in parameters named by comment.
This fixes llvm.org/PR17979.
Before: void f() { g(/*aaa=*/x, /*bbb=*/ !y); }
After: void f() { g(/*aaa=*/x, /*bbb=*/!y); }
ll
clang-format: Fix incorrect space in parameters named by comment.
This fixes llvm.org/PR17979.
Before: void f() { g(/*aaa=*/x, /*bbb=*/ !y); }
After: void f() { g(/*aaa=*/x, /*bbb=*/!y); }
llvm-svn: 195553
show more ...
|
#
446d1cd3 |
| 23-Nov-2013 |
Daniel Jasper <djasper@google.com> |
clang-format: The "<" of a template argument is not a binary operator.
With Style.BreakBeforeBinaryOperators, clang-format breaks incorrectly. This fixes llvm.org/PR17994.
Before: return boost::f
clang-format: The "<" of a template argument is not a binary operator.
With Style.BreakBeforeBinaryOperators, clang-format breaks incorrectly. This fixes llvm.org/PR17994.
Before: return boost::fusion::at_c<0>(iiii).second == boost::fusion::at_c <1>(iiii).second;
After: return boost::fusion::at_c<0>(iiii).second == boost::fusion::at_c<1>(iiii).second;
llvm-svn: 195552
show more ...
|
#
4bf0d809 |
| 23-Nov-2013 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix bug in ObjC method declaration formatting.
Also disallow breaking between "@" and "{" or "[".
Before: - (NSAttributedString *)attributedStringForSegment:(NSUInteger)segment
clang-format: Fix bug in ObjC method declaration formatting.
Also disallow breaking between "@" and "{" or "[".
Before: - (NSAttributedString *)attributedStringForSegment:(NSUInteger)segment index:(NSUInteger)index attributes:(NSDictionary *)attributes nonDigitAttributes:(NSDictionary *) nonDigitAttributes; [mailComposeViewController setToRecipients:@ [ NSBundle.mainBundle.infoDictionary[@"ABBFeedbackEmail"] ]];
After: - (NSAttributedString *)attributedStringForSegment:(NSUInteger)segment index:(NSUInteger)index attributes:(NSDictionary *)attributes nonDigitAttributes: (NSDictionary *)nonDigitAttributes; [mailComposeViewController setToRecipients: @[ NSBundle.mainBundle.infoDictionary[@"ABBFeedbackEmail"] ]];
This fixes llvm.org/PR18030.
llvm-svn: 195550
show more ...
|
#
1a1a2ab7 |
| 23-Nov-2013 |
Daniel Jasper <djasper@google.com> |
clang-format: Prefer column layout if possible.
Add a severe penalty for not using column layout for braced lists. If there are solutions with column layout, these are generally preferable over bin-
clang-format: Prefer column layout if possible.
Add a severe penalty for not using column layout for braced lists. If there are solutions with column layout, these are generally preferable over bin-packed solutions.
Before: std::vector<MyValues> aaaaaaaaaaaaaaaaaaa{ aaaaaaa, aaaaaaaaaa, aaaaa, aaaaaaaaaaaaaaa, aaa, aaaaaaaaaa, a, aaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaa + aaaaaaaaaaaaaaaaaaa, aaaaaaa, a }; After: std::vector<MyValues> aaaaaaaaaaaaaaaaaaa{ aaaaaaa, aaaaaaaaaa, aaaaa, aaaaaaaaaaaaaaa, aaa, aaaaaaaaaa, a, aaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaa + aaaaaaaaaaaaaaaaaaa, aaaaaaa, a };
llvm-svn: 195546
show more ...
|
#
298c3403 |
| 22-Nov-2013 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix bug in alignment of complex template parameters.
Before: template <typename aaaaaaaaaaa, typename bbbbbbbbbbbbb, template <typename> class cccccccccccccccccccccc, typ
clang-format: Fix bug in alignment of complex template parameters.
Before: template <typename aaaaaaaaaaa, typename bbbbbbbbbbbbb, template <typename> class cccccccccccccccccccccc, typename ddddddddddddd> class C {};
After: template <typename aaaaaaaaaaa, typename bbbbbbbbbbbbb, template <typename> class cccccccccccccccccccccc, typename ddddddddddddd> class C {};
llvm-svn: 195418
show more ...
|
#
b631d5e6 |
| 22-Nov-2013 |
Daniel Jasper <djasper@google.com> |
clang-format: Recognize braced lists with trailing function call.
Before: int count = set<int> { f(), g(), h() } .size();
After: int count = set<int>{f(), g(), h()}.size();
llvm-svn: 195
clang-format: Recognize braced lists with trailing function call.
Before: int count = set<int> { f(), g(), h() } .size();
After: int count = set<int>{f(), g(), h()}.size();
llvm-svn: 195417
show more ...
|
#
9aa62407 |
| 21-Nov-2013 |
Alexander Kornienko <alexfh@google.com> |
Better implementation of JavaScript === and !== operators.
Summary: Now based on token merging. Now they are not only prevented from being split, but are actually formatted as comparison operators.
Better implementation of JavaScript === and !== operators.
Summary: Now based on token merging. Now they are not only prevented from being split, but are actually formatted as comparison operators.
Reviewers: djasper, klimek
Reviewed By: klimek
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D2240
llvm-svn: 195354
show more ...
|
#
a78d7d45 |
| 21-Nov-2013 |
Daniel Jasper <djasper@google.com> |
clang-format: Improve formatting of ObjC method expressions.
In particular, make breaking after a parameter's ":" more of a last resort choice as it significantly affects the readability gained by a
clang-format: Improve formatting of ObjC method expressions.
In particular, make breaking after a parameter's ":" more of a last resort choice as it significantly affects the readability gained by aligning the parameters.
Before (in Chromium style - which doesn't allow bin-packing): { popup_window_.reset([[RenderWidgetPopupWindow alloc] initWithContentRect: NSMakeRect( origin_global.x, origin_global.y, pos.width(), pos.height()) styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO]); }
After: { popup_window_.reset([[RenderWidgetPopupWindow alloc] initWithContentRect:NSMakeRect(origin_global.x, origin_global.y, pos.width(), pos.height()) styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO]); }
llvm-svn: 195301
show more ...
|
#
3cfa9739 |
| 20-Nov-2013 |
Alexander Kornienko <alexfh@google.com> |
Added an option to allow short function bodies be placed on a single line.
Summary: The AllowShortFunctionsOnASingleLine option now controls short function body placement on a single line independen
Added an option to allow short function bodies be placed on a single line.
Summary: The AllowShortFunctionsOnASingleLine option now controls short function body placement on a single line independent of the BreakBeforeBraces option. Updated tests using BreakBeforeBraces other than BS_Attach.
Addresses http://llvm.org/PR17888
Reviewers: klimek, djasper
Reviewed By: klimek
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D2230
llvm-svn: 195256
show more ...
|
#
7c9c0507 |
| 20-Nov-2013 |
Alexander Kornienko <alexfh@google.com> |
Support for JavaScript === and !== operators.
Reviewers: klimek, djasper
Reviewed By: klimek
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D2231
llvm-svn: 1952
Support for JavaScript === and !== operators.
Reviewers: klimek, djasper
Reviewed By: klimek
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D2231
llvm-svn: 195251
show more ...
|
#
06c84f2e |
| 20-Nov-2013 |
Manuel Klimek <klimek@google.com> |
Fix bug where optimization would lead to strange line breaks.
Before: void f() { CHECK_EQ(aaaa, ( *bbbbbbbbb)->cccccc) << "qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq";
Fix bug where optimization would lead to strange line breaks.
Before: void f() { CHECK_EQ(aaaa, ( *bbbbbbbbb)->cccccc) << "qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq"; }
After: void f() { CHECK_EQ(aaaa, (*bbbbbbbbb)->cccccc) << "qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq"; }
llvm-svn: 195240
show more ...
|
Revision tags: llvmorg-3.4.0-rc1 |
|
#
393e3088 |
| 13-Nov-2013 |
Alexander Kornienko <alexfh@google.com> |
Correctly mark first token in the presence of UTF-8 BOM.
Summary: Fixes http://llvm.org/PR17753
Reviewers: klimek
Reviewed By: klimek
CC: cfe-commits, klimek
Differential Revision: http://llvm-r
Correctly mark first token in the presence of UTF-8 BOM.
Summary: Fixes http://llvm.org/PR17753
Reviewers: klimek
Reviewed By: klimek
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D2159
llvm-svn: 194576
show more ...
|
#
875395f9 |
| 12-Nov-2013 |
Alexander Kornienko <alexfh@google.com> |
Remove extra whitespace instead of breaking the line in comments when possible.
Summary: Solves the problem described in http://llvm.org/PR17756
Reviewers: klimek
Reviewed By: klimek
CC: cfe-comm
Remove extra whitespace instead of breaking the line in comments when possible.
Summary: Solves the problem described in http://llvm.org/PR17756
Reviewers: klimek
Reviewed By: klimek
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D2131
llvm-svn: 194493
show more ...
|