Revision tags: llvmorg-21-init |
|
#
1e89355d |
| 27-Jan-2025 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Treat `f<N | M>(a)` as template function call (#124438)
Fixes #123144.
|
#
9452ee4f |
| 27-Jan-2025 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Treat uppercase identifiers after struct as macros (#124397)
This restores the behavior before llvmorg-20-init.
Fixes #94184.
Fixes #117477.
Fixes #122690.
Fixes #123142.
|
#
8e31050b |
| 25-Jan-2025 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Fix a bug in annotating overloaded co_await decl (#124240)
Fixes #124223.
|
#
a7bca186 |
| 18-Jan-2025 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Correctly annotate braces in macro definitions (#123279)
Fixes #123179.
|
#
fbef1f83 |
| 14-Jan-2025 |
sstwcw <su3e8a96kzlver@posteo.net> |
[clang-format][NFC] Make formatting Verilog faster (#121139)
A regular expression was used in the lexing process. It made the program
take more than linear time with regards to the length of the in
[clang-format][NFC] Make formatting Verilog faster (#121139)
A regular expression was used in the lexing process. It made the program
take more than linear time with regards to the length of the input. It
looked like the entire buffer could be scanned for every token lexed.
Now the regular expression is replaced with code. Previously it took 20
minutes for the program to format 125 000 lines of code on my computer.
Now it takes 315 milliseconds.
show more ...
|
Revision tags: llvmorg-19.1.7 |
|
#
9e4774b9 |
| 06-Jan-2025 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Add LT_RequiresExpression and LT_SimpleRequirement (#121681)
The new line types help to annotate */&/&& in simple requirements as
binary operators.
Fixes #121675.
|
#
00934505 |
| 05-Jan-2025 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Add `TT_CompoundRequirementLBrace` for better annotation (#121539)
Also, add `ST_CompoundRequirement` to help annotating */&/&& in compound
requirement expressions as `TT_BinaryOpera
[clang-format] Add `TT_CompoundRequirementLBrace` for better annotation (#121539)
Also, add `ST_CompoundRequirement` to help annotating */&/&& in compound
requirement expressions as `TT_BinaryOperator`.
Fixes #121471.
show more ...
|
#
44b83e81 |
| 05-Jan-2025 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Add TT_AfterPPDirective for better annotation (#121622)
For now, we only need to annotate the token after #error or #warning.
Fixes #117706.
|
#
1a0d0ae2 |
| 02-Jan-2025 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Add `VariableTemplates` option (#121318)
Closes #120148.
|
#
b1b60d4c |
| 18-Dec-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Fix a bug in annotating arrows after init braces (#119958)
Fixes #59066.
|
Revision tags: llvmorg-19.1.6 |
|
#
54ca1c42 |
| 11-Dec-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Fix idempotent format of hash in macro body (#118513)
Fixes #118334.
|
Revision tags: llvmorg-19.1.5 |
|
#
aa2d084f |
| 23-Nov-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format][NFC] Reformat testcases added in 0ff8b7916050
|
Revision tags: llvmorg-19.1.4 |
|
#
0ff8b791 |
| 13-Nov-2024 |
sstwcw <su3e8a96kzlver@posteo.net> |
[clang-format] Stop crashing on slightly off Verilog module headers (#116000)
This piece of code made the program crash.
```Verilog function pkg::t get (int t = 2, int f = 2); ```
The way
[clang-format] Stop crashing on slightly off Verilog module headers (#116000)
This piece of code made the program crash.
```Verilog function pkg::t get (int t = 2, int f = 2); ```
The way the code is supposed to be parsed is that UnwrappedLineParser should identify the function header, and then TokenAnnotator should recognize the result. But the code in UnwrappedLineParser would mistakenly not recognize it due to the `::`. Then TokenAnnotator would recognize the comma both as TT_VerilogInstancePortComma and TT_VerilogTypeComma. The code for annotating the instance port comma used `setFinalizedType`. The program would crash when it tried to set it to another type.
The code in UnwrappedLineParser now recognizes the `::` token.
The are other cases in which TokenAnnotator would recognize the comma as both of those types, for example if the `function` keyword is removed. The type is now set using `setType` instead so that the program does not crash. The developer no longer knows why he used `setFinalizedType` back then.
show more ...
|
#
6ca816f8 |
| 02-Nov-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Fix a regression in parsing `switch` in macro call (#114506)
Fixes #114408.
|
Revision tags: llvmorg-19.1.3 |
|
#
aea60ab9 |
| 22-Oct-2024 |
Emilia Kond <emilia@rymiel.space> |
[clang-format] Make bitwise and imply requires clause (#110942)
This patch adjusts the requires clause/expression parser to imply a
requires clause if it is preceded by a bitwise and operator `&`,
[clang-format] Make bitwise and imply requires clause (#110942)
This patch adjusts the requires clause/expression parser to imply a
requires clause if it is preceded by a bitwise and operator `&`, and
assume it is a reference qualifier. The justification is that bitwise
operations should not be used for requires expressions.
This is a band-aid fix. The real problems lie in the lookahead heuristic
in the same method. It may be worth it to rewrite that whole heuristic
to track more state in the future, instead of just blindly marching
forward across multiple unrelated definitions, since right now, the
definition following the one with the requires clause can influence
whether the heuristic chooses clause or expression.
Fixes https://github.com/llvm/llvm-project/issues/110485
show more ...
|
#
67f576f3 |
| 18-Oct-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Handle template opener/closer in braced list (#112494)
Fixes #112487.
|
Revision tags: llvmorg-19.1.2 |
|
#
ee646849 |
| 15-Oct-2024 |
Owen Pan <owenpiano@gmail.com> |
Revert "[clang-format] Correctly annotate */& in if condition with braced init (#109505)"
This reverts commit 98281da29f7e36e22ff1e20b9cfefda8c31dbe56 which caused a regression.
Fixes #112176.
|
#
b5f6689d |
| 05-Oct-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Annotate ::operator as FunctionDeclarationName (#111115)
Fixes #111011.
|
#
e5b05a51 |
| 05-Oct-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Handle template closer followed by braces (#110971)
Fixes #110968.
|
#
eaff3a74 |
| 04-Oct-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Fix a bug that misannotates binary operators */&/&& (#110945)
Fixes #110879.
|
#
14e1fef7 |
| 03-Oct-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Handle template closer followed by empty paretheses (#110408)
Fixes #109925.
|
#
688bc958 |
| 03-Oct-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Add TemplateNames option to help parse C++ angles (#109916)
Closes #109912.
|
#
98281da2 |
| 03-Oct-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Correctly annotate */& in if condition with braced init (#109505)
Fixes #109371.
|
#
6ae14c05 |
| 03-Oct-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Annotate the l_paren of function pointer types (#109229)
Fixes #109146.
|
Revision tags: llvmorg-19.1.1 |
|
#
c28e268c |
| 21-Sep-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Correctly annotate pointer/reference in `if` statement (#109370)
Fixes #60146.
|