|
Revision tags: llvmorg-20.1.0, llvmorg-20.1.0-rc3, llvmorg-20.1.0-rc2, llvmorg-20.1.0-rc1, llvmorg-21-init, llvmorg-19.1.7, llvmorg-19.1.6, llvmorg-19.1.5, llvmorg-19.1.4, llvmorg-19.1.3, llvmorg-19.1.2, llvmorg-19.1.1, llvmorg-19.1.0, llvmorg-19.1.0-rc4, llvmorg-19.1.0-rc3, llvmorg-19.1.0-rc2, llvmorg-19.1.0-rc1, llvmorg-20-init, llvmorg-18.1.8, llvmorg-18.1.7, llvmorg-18.1.6, llvmorg-18.1.5, llvmorg-18.1.4, llvmorg-18.1.3, llvmorg-18.1.2, llvmorg-18.1.1, llvmorg-18.1.0, llvmorg-18.1.0-rc4, llvmorg-18.1.0-rc3, llvmorg-18.1.0-rc2, llvmorg-18.1.0-rc1, llvmorg-19-init, llvmorg-17.0.6, llvmorg-17.0.5, llvmorg-17.0.4, llvmorg-17.0.3, llvmorg-17.0.2, llvmorg-17.0.1, llvmorg-17.0.0, llvmorg-17.0.0-rc4, llvmorg-17.0.0-rc3, llvmorg-17.0.0-rc2, llvmorg-17.0.0-rc1, llvmorg-18-init, llvmorg-16.0.6, llvmorg-16.0.5, llvmorg-16.0.4, llvmorg-16.0.3, llvmorg-16.0.2, llvmorg-16.0.1, llvmorg-16.0.0, llvmorg-16.0.0-rc4, llvmorg-16.0.0-rc3, llvmorg-16.0.0-rc2, llvmorg-16.0.0-rc1, llvmorg-17-init, llvmorg-15.0.7, llvmorg-15.0.6, llvmorg-15.0.5, llvmorg-15.0.4, llvmorg-15.0.3, llvmorg-15.0.2, llvmorg-15.0.1, llvmorg-15.0.0, llvmorg-15.0.0-rc3 |
|
| #
05957904 |
| 13-Aug-2022 |
jackh <[email protected]> |
[clang-format] Distinguish logical and after bracket from reference
Fix commit `b646f0955574` and remove redundant code.
Differential Revision: https://reviews.llvm.org/D131750
(cherry picked from
[clang-format] Distinguish logical and after bracket from reference
Fix commit `b646f0955574` and remove redundant code.
Differential Revision: https://reviews.llvm.org/D131750
(cherry picked from commit ef71383b0cfbacdbebf495015f6ead5294bf7759)
show more ...
|
|
Revision tags: llvmorg-15.0.0-rc2, llvmorg-15.0.0-rc1, llvmorg-16-init |
|
| #
2b04c41b |
| 04-Jul-2022 |
Björn Schäpers <[email protected]> |
[clang-format] Fix misannotation of colon in presence of requires clause
For clauses without parentheses it was annotated as TT_InheritanceColon. Relates to https://github.com/llvm/llvm-project/issu
[clang-format] Fix misannotation of colon in presence of requires clause
For clauses without parentheses it was annotated as TT_InheritanceColon. Relates to https://github.com/llvm/llvm-project/issues/56215
Differential Revision: https://reviews.llvm.org/D129940
show more ...
|
| #
8dd2ef21 |
| 15-Jul-2022 |
Krasimir Georgiev <[email protected]> |
[clang-format] distinguish multiplication after brace-init from pointer
After https://github.com/llvm/llvm-project/commit/b646f0955574c6ad4c156c9db522e46f597cfda9, the added regression test started
[clang-format] distinguish multiplication after brace-init from pointer
After https://github.com/llvm/llvm-project/commit/b646f0955574c6ad4c156c9db522e46f597cfda9, the added regression test started being formatted as-if the multiplication `*` was a pointer. This adapts the heuristic to distinguish between these two cases.
Reviewed By: jackhong12, curdeius, HazardyKnusperkeks, owenpan
Differential Revision: https://reviews.llvm.org/D129771
show more ...
|
| #
47bdf53a |
| 03-Jul-2022 |
owenca <[email protected]> |
[clang-format] Break on AfterColon only if not followed by comment
Break after a constructor initializer colon only if it's not followed by a comment on the same line.
Fixes #41128. Fixes #43246.
[clang-format] Break on AfterColon only if not followed by comment
Break after a constructor initializer colon only if it's not followed by a comment on the same line.
Fixes #41128. Fixes #43246.
Differential Revision: https://reviews.llvm.org/D129057
show more ...
|
| #
b646f095 |
| 29-Jun-2022 |
Huang Zhen-Hong <[email protected]> |
[clang-format] Fix misplacement of `*` in declaration of pointer to struct
Fixes #55810
Differential Revision: https://reviews.llvm.org/D127873
|
| #
2e32ff10 |
| 26-Jun-2022 |
sstwcw <[email protected]> |
[clang-format] Handle Verilog preprocessor directives
Verilog uses the backtick instead of the hash. In this revision backticks are lexed manually and then get labeled as hashes so the logic for ha
[clang-format] Handle Verilog preprocessor directives
Verilog uses the backtick instead of the hash. In this revision backticks are lexed manually and then get labeled as hashes so the logic for handling C preprocessor stuff don't have to change. Hashes get labeled as identifiers for Verilog-specific stuff like delays.
Reviewed By: HazardyKnusperkeks
Differential Revision: https://reviews.llvm.org/D124749
show more ...
|
|
Revision tags: llvmorg-14.0.6, llvmorg-14.0.5, llvmorg-14.0.4 |
|
| #
bebf7bdf |
| 22-May-2022 |
owenca <[email protected]> |
[clang-format][NFC] Insert/remove braces in clang/lib/Format/
Differential Revision: https://reviews.llvm.org/D126157
|
| #
130a9cc0 |
| 21-May-2022 |
owenca <[email protected]> |
[clang-format] Fix a crash on lambda trailing return type
Fixes #55625.
|
| #
749fb33e |
| 20-May-2022 |
Tobias Hieta <[email protected]> |
[clang-format] Don't break lines after pragma region
We have autogenerated pragma regions in our code which where awkwardly broken up like this:
``` #pragma region foo(bar : hello) ``` becomes
```
[clang-format] Don't break lines after pragma region
We have autogenerated pragma regions in our code which where awkwardly broken up like this:
``` #pragma region foo(bar : hello) ``` becomes
``` #pragma region foo(bar \ : hello) ```
This fixes the problem by adding region as a keyword and handling it the same way as pragma mark
Reviewed By: curdeius
Differential Revision: https://reviews.llvm.org/D125961
show more ...
|
| #
85ec8a9a |
| 06-May-2022 |
Marek Kurdej <[email protected]> |
[clang-format] Correctly handle SpaceBeforeParens for builtins.
That's a partial fix for https://github.com/llvm/llvm-project/issues/55292.
Before, known builtins behaved differently from other ide
[clang-format] Correctly handle SpaceBeforeParens for builtins.
That's a partial fix for https://github.com/llvm/llvm-project/issues/55292.
Before, known builtins behaved differently from other identifiers: ``` void f () { return F (__builtin_LINE() + __builtin_FOO ()); } ``` After: ``` void f () { return F (__builtin_LINE () + __builtin_FOO ()); } ```
Reviewed By: owenpan
Differential Revision: https://reviews.llvm.org/D125085
show more ...
|
| #
af4cf1c6 |
| 06-May-2022 |
owenca <[email protected]> |
[clang-format][NFC] Make all TokenAnnotator member functions const
Differential Revision: https://reviews.llvm.org/D125064
|
|
Revision tags: llvmorg-14.0.3, llvmorg-14.0.2 |
|
| #
c261f78d |
| 24-Apr-2022 |
sstwcw <[email protected]> |
[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 ...
|
| #
c9e7eec7 |
| 21-Apr-2022 |
owenca <[email protected]> |
[clang-format][NFC] Use isComment() in setCommentLineLevels()
Also replace an unnecessary check with assert() in the unwrapped line parser.
Differential Revision: https://reviews.llvm.org/D124215
|
| #
7343f768 |
| 13-Apr-2022 |
owenca <[email protected]> |
[clang-format][NFC] Clean up code in token annotator
Differential Revision: https://reviews.llvm.org/D123741
|
|
Revision tags: llvmorg-14.0.1 |
|
| #
f74413d1 |
| 23-Mar-2022 |
owenca <[email protected]> |
[clang-format] Fix invalid code generation with comments in lambda
Fixes #51234 and #54496
Differential Revision: https://reviews.llvm.org/D122301
|
| #
8c31b68f |
| 21-Mar-2022 |
sstwcw <[email protected]> |
[clang-format] Use an enum for context types. NFC
We currently have all those fields in AnnotatingParser::Context. They are not inherited from the Context object for the parent scope. They are exc
[clang-format] Use an enum for context types. NFC
We currently have all those fields in AnnotatingParser::Context. They are not inherited from the Context object for the parent scope. They are exclusive. Now they are replaced with an enum.
`InCpp11AttributeSpecifier` and `InCSharpAttributeSpecifier` are not handled like the rest in ContextType because they are not exclusive.
Reviewed By: curdeius, MyDeveloperDay, HazardyKnusperkeks, owenpan
Differential Revision: https://reviews.llvm.org/D121907
show more ...
|
| #
acc7a7f9 |
| 18-Mar-2022 |
Marek Kurdej <[email protected]> |
[clang-format] Use range-for loop. NFC.
|
| #
dc142ea1 |
| 16-Mar-2022 |
Marek Kurdej <[email protected]> |
[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 ...
|
| #
7fb2d9f9 |
| 15-Mar-2022 |
Owen Pan <[email protected]> |
[clang-format] Fix crashes due to missing l_paren
Fixes #54384.
Differential Revision: https://reviews.llvm.org/D121682
|
| #
1db81123 |
| 14-Mar-2022 |
Björn Schäpers <[email protected]> |
[clang-format] Fix crash with ObjC Blocks
Fixes https://github.com/llvm/llvm-project/issues/54367 Fixes https://github.com/llvm/llvm-project/issues/54368
Differential Revision: https://reviews.llvm
[clang-format] Fix crash with ObjC Blocks
Fixes https://github.com/llvm/llvm-project/issues/54367 Fixes https://github.com/llvm/llvm-project/issues/54368
Differential Revision: https://reviews.llvm.org/D121596
show more ...
|
| #
3227aa3a |
| 15-Mar-2022 |
Marek Kurdej <[email protected]> |
[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 ...
|
| #
a6b2f50f |
| 14-Mar-2022 |
Marek Kurdej <[email protected]> |
Revert "[clang-format] Correctly format variable templates."
This reverts commit a140b7104fdae0d9eff5b18efbc784754e0ca274.
It provoked the bug https://github.com/llvm/llvm-project/issues/54374.
|
|
Revision tags: llvmorg-14.0.0 |
|
| #
35abbf16 |
| 13-Mar-2022 |
Björn Schäpers <[email protected]> |
[clang-format] Fix crash on asm block with label
Fixes https://github.com/llvm/llvm-project/issues/54349
Differential Revision: https://reviews.llvm.org/D121559
|
| #
b7494a1d |
| 13-Mar-2022 |
Björn Schäpers <[email protected]> |
[clang-format][NFC] Left renamed to OpeningBrace...
in TokenAnnotator::parseBrace. Left is misleading, because we have a loop and Left does not move.
Also return early.
Differential Revision: http
[clang-format][NFC] Left renamed to OpeningBrace...
in TokenAnnotator::parseBrace. Left is misleading, because we have a loop and Left does not move.
Also return early.
Differential Revision: https://reviews.llvm.org/D121558
show more ...
|
| #
acd17a2b |
| 13-Mar-2022 |
Björn Schäpers <[email protected]> |
[clang-format] Fix crash on invalid requires expression
Fixes https://github.com/llvm/llvm-project/issues/54350
Differential Revision: https://reviews.llvm.org/D121550
|