Revision tags: llvmorg-21-init, llvmorg-19.1.7, llvmorg-19.1.6, llvmorg-19.1.5, llvmorg-19.1.4, llvmorg-19.1.3 |
|
#
786db636 |
| 24-Oct-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Add KeepFormFeed option (#113268)
Closes #113170.
|
Revision tags: llvmorg-19.1.2 |
|
#
f0bd62d8 |
| 07-Oct-2024 |
Brad House <brad@brad-house.com> |
[clang-format] Add AlignFunctionDeclarations to AlignConsecutiveDeclarations (#108241)
Enabling AlignConsecutiveDeclarations also aligns function prototypes
or declarations. This is often unexpect
[clang-format] Add AlignFunctionDeclarations to AlignConsecutiveDeclarations (#108241)
Enabling AlignConsecutiveDeclarations also aligns function prototypes
or declarations. This is often unexpected as typically function
prototypes, especially in public headers, don't use any padding.
Setting AlignFunctionDeclarations to false will skip this alignment.
It is by default set to true to keep compatibility with prior
versions to not make unexpected changes.
Fixes #74320
show more ...
|
Revision tags: llvmorg-19.1.1, llvmorg-19.1.0, llvmorg-19.1.0-rc4 |
|
#
656d5aa9 |
| 28-Aug-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Fix misalignments of pointers in angle brackets (#106013)
Fixes #105898.
|
Revision tags: llvmorg-19.1.0-rc3, llvmorg-19.1.0-rc2, llvmorg-19.1.0-rc1, llvmorg-20-init |
|
#
dcf6b7a8 |
| 12-Jul-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Fix a bug in TCAS_Leave using tabs for indentation (#98427)
Fixes #92530.
|
Revision tags: llvmorg-18.1.8, llvmorg-18.1.7 |
|
#
dba2aa26 |
| 27-May-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Add LeftWithLastLine to AlignEscapedNewlines option (#93402)
Closes #92999.
|
Revision tags: llvmorg-18.1.6 |
|
#
236b3e1a |
| 07-May-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Handle Java switch expressions (#91112)
Also adds AllowShortCaseExpressionOnASingleLine option and
AlignCaseArrows suboption of AlignConsecutiveShortCaseStatements.
Fixes #55903.
|
Revision tags: llvmorg-18.1.5 |
|
#
aa596fa4 |
| 28-Apr-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Set Change.TokenLength to ColumnWidth (#90378)
Fixes #37705.
Fixes #47333.
Fixes #47624.
Fixes #58850.
Fixes #75929.
Fixes #87885.
Fixes #89916.
|
#
b4af01ba |
| 27-Apr-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format][NFC] Don't repeat Changes[i]/Changes[i - 1]
|
Revision tags: llvmorg-18.1.4 |
|
#
684f27d3 |
| 06-Apr-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format][NFC] Use `is` instead of `getType() ==`
|
Revision tags: llvmorg-18.1.3 |
|
#
dd06b8e6 |
| 27-Mar-2024 |
rayroudc <rayroudc@gmail.com> |
[clang-format] Fix anonymous reference parameter with default value (#86254)
When enabling alignment of consecutive declarations and reference right
alignment, the needed space between `& ` and ` =
[clang-format] Fix anonymous reference parameter with default value (#86254)
When enabling alignment of consecutive declarations and reference right
alignment, the needed space between `& ` and ` = ` is removed in the
following use case.
Problem (does not compile)
```
int a(const Test &= Test());
double b();
```
Expected:
```
int a(const Test & = Test());
double b();
```
Test command:
```
echo "int a(const Test& = Test()); double b();" | clang-format -style="{AlignConsecutiveDeclarations: true, ReferenceAlignment: Right}"
```
show more ...
|
#
cceedc93 |
| 24-Mar-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Fix a crash with AlignArrayOfStructures option (#86420)
Fixes #86109.
|
#
e54af608 |
| 22-Mar-2024 |
Hirofumi Nakamura <k.nakamura.hirofumi@gmail.com> |
[clang-format] Added AlignConsecutiveTableGenBreakingDAGArgColons option. (#86150)
The option to specify the style of alignment of the colons inside TableGen's DAGArg.
|
#
b2082a98 |
| 20-Mar-2024 |
Owen Pan <owenpiano@gmail.com> |
Revert "[clang-format][NFC] Delete 100+ redundant #include lines in .cpp files"
This reverts commit b92d6dd704d789240685a336ad8b25a9f381b4cc. See github.com/llvm/llvm-project/commit/b92d6dd704d7#com
Revert "[clang-format][NFC] Delete 100+ redundant #include lines in .cpp files"
This reverts commit b92d6dd704d789240685a336ad8b25a9f381b4cc. See github.com/llvm/llvm-project/commit/b92d6dd704d7#commitcomment-139992444
We should use a tool like Visual Studio to clean up the headers.
show more ...
|
Revision tags: llvmorg-18.1.2 |
|
#
b92d6dd7 |
| 17-Mar-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format][NFC] Delete 100+ redundant #include lines in .cpp files
|
Revision tags: llvmorg-18.1.1, llvmorg-18.1.0, llvmorg-18.1.0-rc4 |
|
#
19cec9ca |
| 27-Feb-2024 |
Hirofumi Nakamura <k.nakamura.hirofumi@gmail.com> |
[clang-format] Add AlignConsecutiveTableGenDefinitions option. (#83008)
To align TableGen consecutive definitions.
|
#
046682ef |
| 26-Feb-2024 |
Hirofumi Nakamura <k.nakamura.hirofumi@gmail.com> |
[clang-format] Add AlignConsecutiveTableGenCondOperatorColons option. (#82878)
To align colons inside TableGen !cond operators.
|
Revision tags: llvmorg-18.1.0-rc3, llvmorg-18.1.0-rc2, llvmorg-18.1.0-rc1 |
|
#
179ade6a |
| 28-Jan-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Fix an issue reported by static analyzer
Fixes #79685.
|
Revision tags: llvmorg-19-init |
|
#
2fc2ee13 |
| 20-Jan-2024 |
XDeme <66138117+XDeme@users.noreply.github.com> |
[clang-format] Fix poor spacing in `AlignArrayOfStructures: Left` (#77868)
Fixes llvm/llvm-project#62904
`AlignArrayOfStructures: Left` combined with `SpacesInParentheses: true`
causes the first
[clang-format] Fix poor spacing in `AlignArrayOfStructures: Left` (#77868)
Fixes llvm/llvm-project#62904
`AlignArrayOfStructures: Left` combined with `SpacesInParentheses: true`
causes the first cell of every row to have 1 additional space.
We were only setting the first cell of the first row to be against the
left brace, now every row will be against the left brace.
show more ...
|
#
97a9dbb6 |
| 12-Jan-2024 |
XDeme <66138117+XDeme@users.noreply.github.com> |
[clang-format] Handle possible crash in `getCells` (#77723)
Done as requested in llvm/llvm-project#77045
I have changed the test a bit, because since the root problem was fixed,
the original tes
[clang-format] Handle possible crash in `getCells` (#77723)
Done as requested in llvm/llvm-project#77045
I have changed the test a bit, because since the root problem was fixed,
the original test would possibly never crash.
show more ...
|
#
b2c0c6f3 |
| 11-Jan-2024 |
Gedare Bloom <gedare@rtems.org> |
[clang-format]: Split alignment of declarations around assignment (#69340)
Function pointers are detected as a type of declaration using
FunctionTypeLParen. They are aligned based on rules for
Ali
[clang-format]: Split alignment of declarations around assignment (#69340)
Function pointers are detected as a type of declaration using
FunctionTypeLParen. They are aligned based on rules for
AlignConsecutiveDeclarations. When a function pointer is on the
right-hand side of an assignment, the alignment of the function pointer
can result in excessive whitespace padding due to the ordering of
alignment, as the alignment processes a line from left-to-right and
first aligns the declarations before and after the assignment operator,
and then aligns the assignment operator. Injection of whitespace by
alignment of declarations after the equal sign followed by alignment of
the equal sign results in the excessive whitespace.
Fixes #68079.
show more ...
|
Revision tags: llvmorg-17.0.6 |
|
#
5679f551 |
| 17-Nov-2023 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Fix crashes in AlignArrayOfStructures (#72520)
Fixed #54815.
Fixed #55269.
Fixed #55493.
Fixed #68431.
|
Revision tags: llvmorg-17.0.5 |
|
#
fff993b7 |
| 13-Nov-2023 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Fix a bug in aligning comments in vector of structs (#72099)
Fixed #71825.
|
#
cc75e520 |
| 10-Nov-2023 |
Owen Pan <owenpiano@gmail.com> |
[clang-format][NFC] Refactor isPointerOrReference
|
Revision tags: llvmorg-17.0.4 |
|
#
5efa84cf |
| 25-Oct-2023 |
Björn Schäpers <bjoern@hazardy.de> |
[clang-format] Don't align comments over scopes
We now stop aligning trailing comments on all closing braces, for
classes etc. we even check for the semicolon between the comment and the
brace.
[clang-format] Don't align comments over scopes
We now stop aligning trailing comments on all closing braces, for
classes etc. we even check for the semicolon between the comment and the
brace.
Fixes #67906.
show more ...
|
#
7bc1031c |
| 24-Oct-2023 |
Owen Pan <owenpiano@gmail.com> |
Revert "[clang-format] Fix align consecutive declarations over function pointers"
This reverts commit a84e0b4bdc9999872adbdaafbade8164b197784b.
Fixes #68079.
|