Revision tags: llvmorg-3.8.0-rc3 |
|
#
02cbeb22 |
| 22-Feb-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] treat forwardDeclare as an import/export statement.
Patch by Martin Probst. Thank you.
llvm-svn: 261528
|
#
b7fda115 |
| 11-Feb-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] Support for (.. of ..) loops.
Before: for (var i of[2, 3]) {}
After: for (var i of [2, 3]) {}
llvm-svn: 260518
|
#
9f4c9d41 |
| 07-Feb-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] Don't count shortened object literals as blocks.
Before: f({a}, () => { g(); // });
After: f({a}, () => { g(); // });
llvm-svn: 260060
|
#
8737930c |
| 03-Feb-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS/TypeScript] Support "enum" as an optional property name, too.
Before: enum?: string [];
After: enum?: string[];
llvm-svn: 259628
|
Revision tags: llvmorg-3.8.0-rc2 |
|
#
1ce41112 |
| 01-Feb-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] Treat "in" as a proper operator.
llvm-svn: 259350
|
Revision tags: llvmorg-3.8.0-rc1 |
|
#
11a87653 |
| 14-Jan-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] Fix incorrect line break leading to semicolon insertion.
clang-format only works for JavaScript code, if all the semicolons are present anyway, so this linebreak can never be desi
clang-format: [JS] Fix incorrect line break leading to semicolon insertion.
clang-format only works for JavaScript code, if all the semicolons are present anyway, so this linebreak can never be desired.
Before (with appropriate statement lengths or column limit): return [ aaa ];
After: return [ aaaa ];
llvm-svn: 257741
show more ...
|
#
50780ce1 |
| 13-Jan-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: [ObjC+JS] Allow bin-packing of array literals.
After reading the style guides again, they don't actually say how to pack or not pack array literals. Based on some user reports, array i
clang-format: [ObjC+JS] Allow bin-packing of array literals.
After reading the style guides again, they don't actually say how to pack or not pack array literals. Based on some user reports, array initializers can unnecessarily get quite long if they contain many small elements. Array literals with trailing commas are still formatted one per line so that users have a way to opt out of the packing.
Before: var array = [ aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa ];
After: var array = [ aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa ];
llvm-svn: 257615
show more ...
|
#
8620d4c5 |
| 12-Jan-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] Support exporting abstract classes.
Before: export abstract class X {y: number;} (and all sorts of other havoc in more complicated cases).
After: export abstract class X { y:
clang-format: [JS] Support exporting abstract classes.
Before: export abstract class X {y: number;} (and all sorts of other havoc in more complicated cases).
After: export abstract class X { y: number; }
llvm-svn: 257451
show more ...
|
#
f55e4182 |
| 11-Jan-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] Teach clang-format about "export interface".
llvm-svn: 257406
|
#
28024560 |
| 11-Jan-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] Improve line-flow when calling functions on array literals.
Before: return [ aaaaaaaaaaaaaaaaaaaaaa ].aaaaaaa(function() { // }) .bbbbbb();
After: return [aa
clang-format: [JS] Improve line-flow when calling functions on array literals.
Before: return [ aaaaaaaaaaaaaaaaaaaaaa ].aaaaaaa(function() { // }) .bbbbbb();
After: return [aaaaaaaaaaaaaaaaaaaaaa] .aaaaaaa(function() { // }) .bbbbbb();
llvm-svn: 257324
show more ...
|
#
e1f72a67 |
| 09-Jan-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix the counting of leading whitespace in tok::unknown tokens
Previously, all whitespace characters would increase the starting column, which doesn't make sense. This fixes a problem,
clang-format: Fix the counting of leading whitespace in tok::unknown tokens
Previously, all whitespace characters would increase the starting column, which doesn't make sense. This fixes a problem, e.g. with the length calculation in JS template strings.
llvm-svn: 257267
show more ...
|
#
b9a4990a |
| 09-Jan-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] Support semicolons in TypeScript's TypeMemberLists.
Before: var x: { a: string; b: number; } = {};
After: var x: {a: string; b: number;} = {};
llvm-svn: 257255
|
#
f412e26d |
| 08-Jan-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] Prefer wrapping before the TypeScript return type over wrapping before parameters.
Before: function someFunc( args: string[]): {longReturnValue: string[]} {}
After: fun
clang-format: [JS] Prefer wrapping before the TypeScript return type over wrapping before parameters.
Before: function someFunc( args: string[]): {longReturnValue: string[]} {}
After: function someFunc(args: string[]): {longReturnValue: string[]} {}
llvm-svn: 257162
show more ...
|
#
d196abbb |
| 08-Jan-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] Add some Closure Compiler JSDoc tags to the default Google configuration so that they aren't line-wrapped.
llvm-svn: 257159
|
#
d5ec65ba |
| 08-Jan-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] Support more ES6 classes.
Before: foo = class { constructor() {} } ;
After: foo = class { constructor() {} };
llvm-svn: 257154
|
#
7bec87c9 |
| 07-Jan-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix corner case in one-per-line formatting.
Before (example is JS, but also applies to C++): return [ aaaa() .bbbbbbbb('A'), aaaa().bbbbbbbb('B'), aaaa().bbbbbbbb
clang-format: Fix corner case in one-per-line formatting.
Before (example is JS, but also applies to C++): return [ aaaa() .bbbbbbbb('A'), aaaa().bbbbbbbb('B'), aaaa().bbbbbbbb('C'), ];
After: return [ aaaa().bbbbbbbb('A'), aaaa().bbbbbbbb('B'), aaaa().bbbbbbbb('C'), ];
llvm-svn: 257079
show more ...
|
#
efc1a83a |
| 07-Jan-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] Support more ES6 imports.
Before: import a, {X, Y} from 'some/module.js';
After: import a, {X, Y} from 'some/module.js';
llvm-svn: 257038
|
#
5e27146d |
| 04-Jan-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] Support more ES6 default exports.
llvm-svn: 256759
|
#
b14f6675 |
| 04-Jan-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] Support ES6 exports of array literals.
Before: export default[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb]; export defau
clang-format: [JS] Support ES6 exports of array literals.
Before: export default[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb]; export default[];
After: export default [ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ]; export default [];
llvm-svn: 256758
show more ...
|
#
ebcb71fb |
| 04-Jan-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] Improve empty array literal detection.
Previously, the [] in the following example were recognized as an array subscript leading to weird indentation.
Before: var aaaa = aaaaa
clang-format: [JS] Improve empty array literal detection.
Previously, the [] in the following example were recognized as an array subscript leading to weird indentation.
Before: var aaaa = aaaaa || // wrap [];
After: var aaaa = aaaaa || // wrap [];
llvm-svn: 256753
show more ...
|
#
779c66f3 |
| 30-Dec-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] Support TypeScript 1.6 user defined type guards.
Before: function foo(check: Object): check is{foo: string, bar: string, baz: string, foobar: string} { return 'bar' in che
clang-format: [JS] Support TypeScript 1.6 user defined type guards.
Before: function foo(check: Object): check is{foo: string, bar: string, baz: string, foobar: string} { return 'bar' in check; }
After: function foo(check: Object): check is {foo: string, bar: string, baz: string, foobar: string} { return 'bar' in check; }
llvm-svn: 256631
show more ...
|
#
6f5a1933 |
| 29-Dec-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS/TypeScript] Support "enum" as property name.
Before: enum: string [];
After: enum: string[];
llvm-svn: 256546
|
#
b542f9f1 |
| 22-Dec-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] Support arrays of object-type literals.
Before: interface I { o: {} []; }
After: interface I { o: {}[]; }
llvm-svn: 256247
|
#
e2deb59f |
| 22-Dec-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] Conservatively introduce column layout for JS array initializers. For now, only use it for 20 items or more. Otherwise, clang-format formats these one-per-line and thus increases t
clang-format: [JS] Conservatively introduce column layout for JS array initializers. For now, only use it for 20 items or more. Otherwise, clang-format formats these one-per-line and thus increases the vertical code size a lot.
llvm-svn: 256246
show more ...
|
#
72a1b6a5 |
| 22-Dec-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] "operator" is not a keyword in Java/JavaScript.
llvm-svn: 256245
|