#
c261f78d |
| 24-Apr-2022 |
sstwcw <f0gukp2nk@protonmail.com> |
[clang-format] Refactor determineStarAmpUsage NFC
There was some duplicate code in determineStarAmpUsage and determinePlusMinusCaretUsage
Now a `-` or `+` following `;`, `sizeof`, `co_await`, or `d
[clang-format] Refactor determineStarAmpUsage NFC
There was some duplicate code in determineStarAmpUsage and determinePlusMinusCaretUsage
Now a `-` or `+` following `;`, `sizeof`, `co_await`, or `delete` is regarded as a unary operator.
Now a `*` or `&` following `case` is also a unary operator.
Reviewed By: curdeius, MyDeveloperDay, HazardyKnusperkeks
Differential Revision: https://reviews.llvm.org/D121754
show more ...
|
#
221c2b68 |
| 21-Apr-2022 |
owenca <owenpiano@gmail.com> |
[clang-format] Fix a crash on AllowShortFunctionsOnASingleLine
Fixes #55008.
Differential Revision: https://reviews.llvm.org/D124152
|
#
19884d62 |
| 19-Apr-2022 |
Arthur Eubanks <aeubanks@google.com> |
[clang-format] Don't skip PP lines if original line was a PP line when trying to merge lines
Fixes a crash introduced in D123737 where LastNonComment would be null.
Reviewed By: curdeius
Different
[clang-format] Don't skip PP lines if original line was a PP line when trying to merge lines
Fixes a crash introduced in D123737 where LastNonComment would be null.
Reviewed By: curdeius
Differential Revision: https://reviews.llvm.org/D124036
show more ...
|
#
f14ebe91 |
| 13-Apr-2022 |
Arthur Eubanks <aeubanks@google.com> |
[clang-format] Skip preprocessor lines when finding the record lbrace
With D117142, we would now format
``` struct A { #define A void f() { a(); } #endif }; ```
into
``` struct A { #ifdef A v
[clang-format] Skip preprocessor lines when finding the record lbrace
With D117142, we would now format
``` struct A { #define A void f() { a(); } #endif }; ```
into
``` struct A { #ifdef A void f() { a(); } #endif }; ```
because we were looking for the record lbrace without skipping preprocess lines.
Fixes https://github.com/llvm/llvm-project/issues/54901.
Reviewed By: curdeius, owenpan
Differential Revision: https://reviews.llvm.org/D123737
show more ...
|
Revision tags: llvmorg-14.0.1 |
|
#
f74413d1 |
| 23-Mar-2022 |
owenca <owenpiano@gmail.com> |
[clang-format] Fix invalid code generation with comments in lambda
Fixes #51234 and #54496
Differential Revision: https://reviews.llvm.org/D122301
|
Revision tags: llvmorg-14.0.0, llvmorg-14.0.0-rc4, llvmorg-14.0.0-rc3 |
|
#
4e88cb68 |
| 09-Mar-2022 |
Marek Kurdej <marek.kurdej+llvm.org@gmail.com> |
[clang-format] Handle attributes before case label. Relanded.
Fixes https://github.com/llvm/llvm-project/issues/53110.
Reviewed By: MyDeveloperDay, HazardyKnusperkeks, owenpan
Differential Revisio
[clang-format] Handle attributes before case label. Relanded.
Fixes https://github.com/llvm/llvm-project/issues/53110.
Reviewed By: MyDeveloperDay, HazardyKnusperkeks, owenpan
Differential Revision: https://reviews.llvm.org/D121450
Relanding as the original patch provoked an infinite loop in JavaScript/TypeScript. A reproducer test case was added and the issue fixed.
show more ...
|
#
5b811586 |
| 21-Mar-2022 |
Jorge Gorbe Moya <jgorbe@google.com> |
Revert "[clang-format] Handle attributes before case label."
This reverts commit 596fa2d90044841c33b9a0e6b17406c2a45077a2.
|
#
c79e18da |
| 18-Mar-2022 |
Marek Kurdej <marek.kurdej+llvm.org@gmail.com> |
[clang-format] Expect instead of setting the same value in tests. NFC.
|
#
dc142ea1 |
| 16-Mar-2022 |
Marek Kurdej <marek.kurdej+llvm.org@gmail.com> |
[clang-format] Correctly recognize binary operators in template arguments with parenthesized literals.
Fixes https://github.com/llvm/llvm-project/issues/24602.
Before, code like `foo<b & 1>` was fo
[clang-format] Correctly recognize binary operators in template arguments with parenthesized literals.
Fixes https://github.com/llvm/llvm-project/issues/24602.
Before, code like `foo<b & 1>` was formatted correctly but `foo<b & (1)>` wasn't. This patch fixes this inconsistency.
Reviewed By: HazardyKnusperkeks, owenpan
Differential Revision: https://reviews.llvm.org/D121846
show more ...
|
#
34ce42fe |
| 17-Mar-2022 |
Marek Kurdej <marek.kurdej+llvm.org@gmail.com> |
[clang-format] Reformat. NFC.
|
#
dbefb7e8 |
| 16-Mar-2022 |
Marek Kurdej <marek.kurdej+llvm.org@gmail.com> |
[clang-format] Reformat. NFC.
|
#
7fb2d9f9 |
| 15-Mar-2022 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Fix crashes due to missing l_paren
Fixes #54384.
Differential Revision: https://reviews.llvm.org/D121682
|
#
3227aa3a |
| 15-Mar-2022 |
Marek Kurdej <marek.kurdej+llvm.org@gmail.com> |
[clang-format] Correctly format variable templates.
Fixes https://github.com/llvm/llvm-project/issues/54257.
Reviewed By: MyDeveloperDay, HazardyKnusperkeks, owenpan
Differential Revision: https:/
[clang-format] Correctly format variable templates.
Fixes https://github.com/llvm/llvm-project/issues/54257.
Reviewed By: MyDeveloperDay, HazardyKnusperkeks, owenpan
Differential Revision: https://reviews.llvm.org/D121456
show more ...
|
#
e60defb9 |
| 15-Mar-2022 |
Marek Kurdej <marek.kurdej+llvm.org@gmail.com> |
[clang-format] Add regression tests for function ref qualifiers on operator definition. NFC.
Fixes https://github.com/llvm/llvm-project/issues/54374.
|
#
0a0cc3c5 |
| 14-Mar-2022 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Don't unwrap lines preceded by line comments
Fixes #53495
Differential Revision: https://reviews.llvm.org/D121576
|
#
a6b2f50f |
| 14-Mar-2022 |
Marek Kurdej <marek.kurdej+llvm.org@gmail.com> |
Revert "[clang-format] Correctly format variable templates."
This reverts commit a140b7104fdae0d9eff5b18efbc784754e0ca274.
It provoked the bug https://github.com/llvm/llvm-project/issues/54374.
|
#
acd17a2b |
| 13-Mar-2022 |
Björn Schäpers <bjoern@hazardy.de> |
[clang-format] Fix crash on invalid requires expression
Fixes https://github.com/llvm/llvm-project/issues/54350
Differential Revision: https://reviews.llvm.org/D121550
|
#
c24b3db4 |
| 14-Mar-2022 |
sstwcw <f0gukp2nk@protonmail.com> |
[clang-format] Add option to align compound assignments like `+=`
Reviewed By: curdeius, HazardyKnusperkeks, MyDeveloperDay
Differential Revision: https://reviews.llvm.org/D119599
|
#
0570af17 |
| 13-Mar-2022 |
Marek Kurdej <marek.kurdej+llvm.org@gmail.com> |
[clang-format] Fix incorrect assertion on macro definitions with keyword class.
Fixes https://github.com/llvm/llvm-project/issues/54348.
|
#
a140b710 |
| 11-Mar-2022 |
Marek Kurdej <marek.kurdej+llvm.org@gmail.com> |
[clang-format] Correctly format variable templates.
Fixes https://github.com/llvm/llvm-project/issues/54257.
Reviewed By: MyDeveloperDay, HazardyKnusperkeks, owenpan
Differential Revision: https:/
[clang-format] Correctly format variable templates.
Fixes https://github.com/llvm/llvm-project/issues/54257.
Reviewed By: MyDeveloperDay, HazardyKnusperkeks, owenpan
Differential Revision: https://reviews.llvm.org/D121456
show more ...
|
#
596fa2d9 |
| 09-Mar-2022 |
Marek Kurdej <marek.kurdej+llvm.org@gmail.com> |
[clang-format] Handle attributes before case label.
Fixes https://github.com/llvm/llvm-project/issues/53110.
Reviewed By: MyDeveloperDay, HazardyKnusperkeks, owenpan
Differential Revision: https:/
[clang-format] Handle attributes before case label.
Fixes https://github.com/llvm/llvm-project/issues/53110.
Reviewed By: MyDeveloperDay, HazardyKnusperkeks, owenpan
Differential Revision: https://reviews.llvm.org/D121450
show more ...
|
Revision tags: llvmorg-14.0.0-rc2 |
|
#
8b4d68bf |
| 01-Mar-2022 |
Björn Schäpers <bjoern@hazardy.de> |
[clang-format] Handle builtins in constraint expression
Fixes https://github.com/llvm/llvm-project/issues/54106
Differential Revision: https://reviews.llvm.org/D120774
|
#
adfe58b0 |
| 12-Mar-2022 |
mydeveloperday <mydeveloperday@gmail.com> |
[clang-format] Minimize the damage caused by AlignArrayOfStructures when working on non square arrays
I have lost count of the number of times this has been reported, but it fundamentally comes down
[clang-format] Minimize the damage caused by AlignArrayOfStructures when working on non square arrays
I have lost count of the number of times this has been reported, but it fundamentally comes down to the fact that the "AlignArrayLeft/Right" function is fundamentally broken for non-square arrays.
As a result, a pointer can end up running off the end of the array structure, I've spent the last 2 weekends trying to rewrite this algorithm but I've struggled to get it aligned correctly.
This is an interim fix, that ignores all array that are non-square and leaves them alone. I think this can allow us to close out most of the crashes (if not all).
I think this can help reduce the number of bugs coming in that are duplicates.
https://github.com/llvm/llvm-project/issues/53748 https://github.com/llvm/llvm-project/issues/51767 https://github.com/llvm/llvm-project/issues/51277
Reviewed By: curdeius, HazardyKnusperkeks, feg208
Differential Revision: https://reviews.llvm.org/D121069
show more ...
|
#
e2b219bd |
| 10-Mar-2022 |
owenca <owenpiano@gmail.com> |
[clang-format] Handle "// clang-format off" for RemoveBracesLLVM
Differential Revision: https://reviews.llvm.org/D121352
|
#
e6a8b92b |
| 07-Mar-2022 |
Nico Weber <thakis@chromium.org> |
[clang-format] Fix namespace end comments in ObjC++ files too
See also d96ae867351ec.
Differential Revision: https://reviews.llvm.org/D121112
|