#
e99c72fc |
| 26-Mar-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix merging of _T macros.
NewlinesBefore and HasUnescapedNewline were not properly propagated leading to llvm.org/PR23032.
llvm-svn: 233276
|
Revision tags: llvmorg-3.5.2, llvmorg-3.5.2-rc1 |
|
#
8c68a64e |
| 11-Mar-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Recognize the .ts (TypeScript) extension as JavaScript.
Patch by Martin Probst. Thank you.
llvm-svn: 231926
|
#
28b45ce1 |
| 08-Mar-2015 |
Benjamin Kramer <benny.kra@googlemail.com> |
Make constant static variables const so they can go into a read-only section
NFC.
llvm-svn: 231597
|
Revision tags: llvmorg-3.6.0 |
|
#
411b251c |
| 24-Feb-2015 |
Jacques Pienaar <jpienaar@google.com> |
clang-format: Change location of stashed token
Commit of patch in http://reviews.llvm.org/D7871
llvm-svn: 230395
|
#
68a7dbf8 |
| 20-Feb-2015 |
Jacques Pienaar <jpienaar@google.com> |
Fix merging of << at end of input.
Commit of review http://reviews.llvm.org/D7766
llvm-svn: 230061
|
#
a0ef4f36 |
| 20-Feb-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: [js] Support template strings.
Merge template strings (marked by backticks ``). Do not format any contents of template strings.
Patch by Martin Probst. Thank you.
llvm-svn: 230011
|
#
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, llvmorg-3.6.0-rc3 |
|
#
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 |
|
#
0955cb41 |
| 29-Jan-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: FIXME that led to access of uninitialized memory.
I have so far not succeeded in finding a nicely reduced test case or an observable difference which could help me create a test failur
clang-format: FIXME that led to access of uninitialized memory.
I have so far not succeeded in finding a nicely reduced test case or an observable difference which could help me create a test failure without msan.
Committing without test to unblock kcc's further fuzzing progress.
llvm-svn: 227433
show more ...
|
Revision tags: llvmorg-3.6.0-rc1 |
|
#
1cd3c71c |
| 14-Jan-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Disable flag for Google's Java and Javascript styles.
Disable AlwaysBreakBeforeMultilineString, as the style guides don't really say to do so.
llvm-svn: 225982
|
#
ece3d3c2 |
| 07-Jan-2015 |
Nico Weber <nicolasweber@gmx.de> |
clang-format: Let Chromium use the Google default for AlignTrailingComments.
r225141 changed the defaults of AllowShortIfStatementsOnASingleLine and AlignTrailingComments for Google style and added
clang-format: Let Chromium use the Google default for AlignTrailingComments.
r225141 changed the defaults of AllowShortIfStatementsOnASingleLine and AlignTrailingComments for Google style and added explicit overrides for Chromium style to undo these changes. For AllowShortIfStatementsOnASingleLine that's good as the Android style guide (which Chromium uses for Java) explicitly permits single-line ifs. But it's silent on trailing comments, to it makes sense for Chromium style to just follow Google style.
llvm-svn: 225363
show more ...
|
#
fd4ed184 |
| 04-Jan-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: [Java] Change a few flags for Google's Java style.
No tests added as all of these are already tested separately.
llvm-svn: 225141
|
Revision tags: llvmorg-3.5.1, llvmorg-3.5.1-rc2 |
|
#
0580ff0e |
| 17-Dec-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix incorrect calculation of token lenghts.
This led, e.g. to break JavaScript regex literals too early.
llvm-svn: 224419
|
#
0df50938 |
| 10-Dec-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Factor out UnwrappedLineFormatter into a separate file.
No functional changes intended.
llvm-svn: 223936
|
Revision tags: llvmorg-3.5.1-rc1 |
|
#
55aed677 |
| 07-Dec-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Don't merge lines with comments.
Before: int f() { // comment return 42; }
After: int f() { // comment return 42; }
This fixes llvm.org/PR21769.
llvm-svn: 223609
|
#
3219e43c |
| 02-Dec-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Add option to suppress operator alignment.
With alignment: int aaaaaa = aa + bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb * cccccccccccccccccccccccccccccccc;
clang-format: Add option to suppress operator alignment.
With alignment: int aaaaaa = aa + bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb * cccccccccccccccccccccccccccccccc;
Without alignment: int aaaaaa = aa + bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb * cccccccccccccccccccccccccccccccc;
This fixes llvm.org/PR21666.
llvm-svn: 223117
show more ...
|
#
450425c9 |
| 26-Nov-2014 |
Nico Weber <nicolasweber@gmx.de> |
clang-format: Tweak -style=Chromium for Java files.
For Java, don't do any of the deviations from Google Style that Chromium style does for C++.
Chromium's Java follows Android Java style [1], whic
clang-format: Tweak -style=Chromium for Java files.
For Java, don't do any of the deviations from Google Style that Chromium style does for C++.
Chromium's Java follows Android Java style [1], which is roughly Google Java style with an indent of 4 and a continuation indent of 8.
1: https://source.android.com/source/code-style.html llvm-svn: 222839
show more ...
|
#
9e709351 |
| 26-Nov-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Add SFS_Empty to only empty functions on a single line.
Activated for and tested by Google's Java style.
This fixes llvm.org/PR21667.
llvm-svn: 222819
|
#
a98b7b01 |
| 25-Nov-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Refactoring.
Re-apply r222638 and r222641 without variadic templates.
llvm-svn: 222747
|
#
484ee9b4 |
| 24-Nov-2014 |
Aaron Ballman <aaron@aaronballman.com> |
Reverting r222638; it broke the MSVC build bots because Visual Studio 2012 does not support variadic templates. Also reverting r222641 because it was relying on 222638.
llvm-svn: 222656
|
#
79f226e7 |
| 23-Nov-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Make short case labels work with #ifs
Before: switch (a) { #if FOO case 0: return 0; #endif }
After: switch (a) { #if FOO case 0: return 0; #endif }
This fixed llvm
clang-format: Make short case labels work with #ifs
Before: switch (a) { #if FOO case 0: return 0; #endif }
After: switch (a) { #if FOO case 0: return 0; #endif }
This fixed llvm.org/PR21544.
llvm-svn: 222642
show more ...
|
#
7198b0c7 |
| 23-Nov-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Refactoring.
Provide more overloads to simplify testing the type of a token. No functional changes intended.
llvm-svn: 222638
|
#
616de864 |
| 23-Nov-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] Support Closure's module statements.
These are like import statements and should not be line-wrapped. Minor restructuring of the handling of other import statements.
llvm-svn: 22
clang-format: [JS] Support Closure's module statements.
These are like import statements and should not be line-wrapped. Minor restructuring of the handling of other import statements.
llvm-svn: 222637
show more ...
|
#
4b444495 |
| 21-Nov-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Use nested block special case for all languages.
Previously this was only used for JavaScript.
Before: functionCall({ int i; int j;
clang-format: Use nested block special case for all languages.
Previously this was only used for JavaScript.
Before: functionCall({ int i; int j; }, aaaa, bbbb, cccc);
After: functionCall({ int i; int j; }, aaaa, bbbb, cccc);
llvm-svn: 222531
show more ...
|