#
45bf56cd |
| 31-Jul-2014 |
Manuel Klimek <klimek@google.com> |
Fix parsing of classes where the class name is an absolute nested name specifier.
llvm-svn: 214393
|
#
71646ec2 |
| 30-Jul-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Understand 'typename' in placement new.
Before: new (aaaaaaaaaaaaaaaaaaaaaaaaaa( aaaaaaaaaaaaaaaaaaaaaaa)) typename aaaaaaaaaaaaaaaaaaaaaaaa();
After: new (aaaaaaaaaaaaaaaaa
clang-format: Understand 'typename' in placement new.
Before: new (aaaaaaaaaaaaaaaaaaaaaaaaaa( aaaaaaaaaaaaaaaaaaaaaaa)) typename aaaaaaaaaaaaaaaaaaaaaaaa();
After: new (aaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaa)) typename aaaaaaaaaaaaaaaaaaaaaaaa();
llvm-svn: 214300
show more ...
|
#
6ba1638f |
| 28-Jul-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Improve operator and template recognition.
Before: static_assert(is_convertible < A &&, B > ::value, "AAA");
After: static_assert(is_convertible<A &&, B>::value, "AAA");
llvm-svn
clang-format: Improve operator and template recognition.
Before: static_assert(is_convertible < A &&, B > ::value, "AAA");
After: static_assert(is_convertible<A &&, B>::value, "AAA");
llvm-svn: 214075
show more ...
|
#
8184d66f |
| 28-Jul-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Improve pointer/reference detection.
Before (with left pointer alignment): void f(int i = 0, SomeType* *temps = NULL);
After: void f(int i = 0, SomeType** temps = NULL);
llvm-svn
clang-format: Improve pointer/reference detection.
Before (with left pointer alignment): void f(int i = 0, SomeType* *temps = NULL);
After: void f(int i = 0, SomeType** temps = NULL);
llvm-svn: 214071
show more ...
|
#
2ac3fdfd |
| 28-Jul-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix unary operator recognition.
Before: int x = ~ * p;
After: int x = ~*p;
llvm-svn: 214070
|
#
8b76d608 |
| 28-Jul-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix formatting of lock annotations in lambda definitions.
Before: SomeFunction([](int i)LOCKS_EXCLUDED(a) {});
After: SomeFunction([](int i) LOCKS_EXCLUDED(a) {});
llvm-svn: 2140
clang-format: Fix formatting of lock annotations in lambda definitions.
Before: SomeFunction([](int i)LOCKS_EXCLUDED(a) {});
After: SomeFunction([](int i) LOCKS_EXCLUDED(a) {});
llvm-svn: 214069
show more ...
|
Revision tags: llvmorg-3.5.0-rc1 |
|
#
fc3861ac |
| 17-Jul-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix parsing of conditional expressions.
Before: aaaaaa = aaaaaaaaaaaa ? aaaaaaaaaa ? aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa : aaaaaaaaaaaaaaaaaaaaaa : aaaaaaaaaaaaaaaaaaaaa
clang-format: Fix parsing of conditional expressions.
Before: aaaaaa = aaaaaaaaaaaa ? aaaaaaaaaa ? aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa : aaaaaaaaaaaaaaaaaaaaaa : aaaaaaaaaaaaaaaaaaaaaaaaaaaa;
After: aaaaaa = aaaaaaaaaaaa ? aaaaaaaaaa ? aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa : aaaaaaaaaaaaaaaaaaaaaa : aaaaaaaaaaaaaaaaaaaaaaaaaaaa;
llvm-svn: 213258
show more ...
|
#
fcfac10c |
| 15-Jul-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Improve heuristic around avoiding bad line breaks.
Now, this can be properly formatted: static_cast<A< // B> *>( // );
Before, clang-format could end up, not formatt
clang-format: Improve heuristic around avoiding bad line breaks.
Now, this can be properly formatted: static_cast<A< // B> *>( // );
Before, clang-format could end up, not formatting the code at all.
llvm-svn: 213055
show more ...
|
#
3064620d |
| 14-Jul-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Improve cast detection (fix false positive).
Before: fn(a)(b)+1;
After: fn(a)(b) + 1;
llvm-svn: 212935
|
#
85bcadcd |
| 09-Jul-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix behavior around pointer-to-member invocations.
Before: (aaaaaaaaaa->* bbbbbbb)(aaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaa));
After: (aaaaaaaaaa->*bbbbbbb)(
clang-format: Fix behavior around pointer-to-member invocations.
Before: (aaaaaaaaaa->* bbbbbbb)(aaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaa));
After: (aaaaaaaaaa->*bbbbbbb)( aaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaa));
llvm-svn: 212617
show more ...
|
#
c75e1eff |
| 09-Jul-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Add new option to indent wrapped function declarations.
Though not completely identical, make former IndentFunctionDeclarationAfterType change this flag for backwards compatibility (it
clang-format: Add new option to indent wrapped function declarations.
Though not completely identical, make former IndentFunctionDeclarationAfterType change this flag for backwards compatibility (it is somewhat close in meaning and better the err'ing on an unknown config flag).
llvm-svn: 212597
show more ...
|
#
4355e7f0 |
| 09-Jul-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Revamp function declaration/definition indentation.
Key changes: - Correctly (well ...) distinguish function declarations and variable declarations with ()-initialization. - Don't in
clang-format: Revamp function declaration/definition indentation.
Key changes: - Correctly (well ...) distinguish function declarations and variable declarations with ()-initialization. - Don't indent when breaking function declarations/definitions after the return type. - Indent variable declarations and typedefs when breaking after the type.
This fixes llvm.org/PR17999.
llvm-svn: 212591
show more ...
|
#
2520fe96 |
| 30-Jun-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Support member function reference qualifiers.
Before: string // break operator()() & {}
After: string // break operator()() & {}
llvm-svn: 212041
|
#
91beebd0 |
| 30-Jun-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Improve expression heuristics.
Upon encountering a binary operator inside parentheses, assume that the parentheses contain an expression.
Before: MACRO('0' <= c&& c <= '9');
After:
clang-format: Improve expression heuristics.
Upon encountering a binary operator inside parentheses, assume that the parentheses contain an expression.
Before: MACRO('0' <= c&& c <= '9');
After: MACRO('0' <= c && c <= '9');
llvm-svn: 212040
show more ...
|
#
a2fb50f9 |
| 24-Jun-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Understand that breaking before lambdas is fine.
Before: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa([]( const aaaaaaaaaa &a) { return a; });
After: aaaaaaaaa
clang-format: Understand that breaking before lambdas is fine.
Before: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa([]( const aaaaaaaaaa &a) { return a; });
After: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa( [](const aaaaaaaaaa &a) { return a; });
llvm-svn: 211575
show more ...
|
#
32ccb038 |
| 23-Jun-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix corner case in pointer/reference detection.
llvm-svn: 211487
|
#
553d4878 |
| 17-Jun-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Introduce style with spaces on both sides of */&.
Patch by Janusz Sobczak (slightly extended). This fixes llvm.org/19929.
llvm-svn: 211098
|
#
1f24317d |
| 12-Jun-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Fix msvc unittest build.
Looks like msvc has an asymmetrical operator ==.
llvm-svn: 210768
|
#
d0136707 |
| 12-Jun-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Give clang-format its own error category.
The posix errno values are probably to the best thing to use for describing parse errors.
This should also fix the mingw build.
llvm-svn: 210739
|
#
96b03300 |
| 11-Jun-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Use std::error_code instead of llvm::error_code.
This is an update for a llvm api change.
llvm-svn: 210688
|
#
4ac7de71 |
| 11-Jun-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix pointer/reference detection after decltype.
Before: [](const decltype(*a) & value) {}
After: [](const decltype(*a)& value) {}
llvm-svn: 210643
|
#
ecaba179 |
| 10-Jun-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Increase penalty for wrapping array subscript expressions
Before: aaaaaaaaaaa aaaaaaaaaaaaaaa = aaaaaaaaaaaaaaaaaaaaaaaaaa->aaaaaaaaa[0].aaaaaaa [
clang-format: Increase penalty for wrapping array subscript expressions
Before: aaaaaaaaaaa aaaaaaaaaaaaaaa = aaaaaaaaaaaaaaaaaaaaaaaaaa->aaaaaaaaa[0].aaaaaaa [0].aaaaaaaaaaaaaaaaaaaaaa();
After: aaaaaaaaaaa aaaaaaaaaaaaaaa = aaaaaaaaaaaaaaaaaaaaaaaaaa->aaaaaaaaa[0] .aaaaaaa[0] .aaaaaaaaaaaaaaaaaaaaaa();
llvm-svn: 210529
show more ...
|
#
90818057 |
| 10-Jun-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix enum formatting with specific comment.
Before: enum Fruit { // APPLE, PEAR };
After: enum Fruit { // APPLE, PEAR };
llvm-svn: 210522
|
#
da18fd86 |
| 10-Jun-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Support variadic lambda captures.
Before: return [ i, args... ]{};
After: return [i, args...] {};
llvm-svn: 210514
|
#
3251fff0 |
| 10-Jun-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Handle multiline strings inside ternary expressions.
With AlwaysSplitBeforeMultilineStrings, clang-format would not find any valid solution.
llvm-svn: 210513
|