|
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, llvmorg-15.0.0-rc2, llvmorg-15.0.0-rc1, llvmorg-16-init |
|
| #
892a9968 |
| 20-Jul-2022 |
owenca <[email protected]> |
[clang-format] Indent tokens after hash only if it starts a line
Fixes #56602.
Differential Revision: https://reviews.llvm.org/D130136
|
| #
3c18a8b3 |
| 13-Jul-2022 |
Björn Schäpers <[email protected]> |
[clang-format] Indent TT_CtorInitializerColon after requires clauses
Fixes https://github.com/llvm/llvm-project/issues/56215
Differential Revision: https://reviews.llvm.org/D129942
|
| #
a7789d63 |
| 16-Jul-2022 |
owenca <[email protected]> |
[clang-format][NFC] Replace SmallVector parameter with ArrayRef
Addresses https://reviews.llvm.org/D129466#3654410.
|
| #
36229fa3 |
| 11-Jul-2022 |
owenca <[email protected]> |
[clang-format][NFC] Replace most of std::vector with SmallVector
Differential Revision: https://reviews.llvm.org/D129466
|
| #
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 ...
|
|
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
|
|
Revision tags: llvmorg-14.0.3, llvmorg-14.0.2, llvmorg-14.0.1 |
|
| #
9dad527f |
| 18-Mar-2022 |
Marek Kurdej <[email protected]> |
[clang-format] Use range-for loop with drop_end. NFC.
|
|
Revision tags: llvmorg-14.0.0, llvmorg-14.0.0-rc4, llvmorg-14.0.0-rc3, llvmorg-14.0.0-rc2, llvmorg-14.0.0-rc1, llvmorg-15-init, llvmorg-13.0.1, llvmorg-13.0.1-rc3, llvmorg-13.0.1-rc2 |
|
| #
7ebb00a2 |
| 02-Jan-2022 |
Björn Schäpers <[email protected]> |
[clang-format][NFC] Simplify if in ContinuationIndenter::addTokenOCL
Setting a boolean within an if and only using it in the very next if is a bit confusing. Merge it into one if.
Differential Revi
[clang-format][NFC] Simplify if in ContinuationIndenter::addTokenOCL
Setting a boolean within an if and only using it in the very next if is a bit confusing. Merge it into one if.
Differential Revision: https://reviews.llvm.org/D120237
show more ...
|
| #
fee4a971 |
| 22-Feb-2022 |
Marek Kurdej <[email protected]> |
[clang-format] Use FormatToken::is* functions without passing through `Tok`. NFC.
|
| #
48dc9808 |
| 21-Feb-2022 |
Sam McCall <[email protected]> |
[Format] Remove unused LineContainsContinuedForLoopSection. NFC
Differential Revision: https://reviews.llvm.org/D120282
|
| #
9b139923 |
| 02-Jan-2022 |
Björn Schäpers <[email protected]> |
[clang-format][NFC] Return early in ContinuationIndenter::mustBreak
We can return as early as possible and only calculate IsComparison if we really need to. Also cache getPrecedence() instead of que
[clang-format][NFC] Return early in ContinuationIndenter::mustBreak
We can return as early as possible and only calculate IsComparison if we really need to. Also cache getPrecedence() instead of querying it at most 4 times.
Differential Revision: https://reviews.llvm.org/D119923
show more ...
|
| #
8da319fe |
| 03-Dec-2021 |
Björn Schäpers <[email protected]> |
[clang-format][NFC] Give State.Stack.back() a meaningful name
Without that debugging was a hell for me.
Differential Revision: https://reviews.llvm.org/D119597
|
| #
7d5062c6 |
| 12-Feb-2022 |
Marek Kurdej <[email protected]> |
[clang-format] Remove unnecessary parentheses in return statements. NFC.
|
|
Revision tags: llvmorg-13.0.1-rc1 |
|
| #
9aab0db1 |
| 05-Nov-2021 |
Björn Schäpers <[email protected]> |
[clang-format] Improve require and concept handling
- Added an option where to put the requires clauses. - Renamed IndentRequires to IndentRequiresClause. - Changed BreakBeforeConceptDeclaration fro
[clang-format] Improve require and concept handling
- Added an option where to put the requires clauses. - Renamed IndentRequires to IndentRequiresClause. - Changed BreakBeforeConceptDeclaration from bool to an enum.
Fixes https://llvm.org/PR32165, and https://llvm.org/PR52401.
Differential Revision: https://reviews.llvm.org/D113319
show more ...
|
| #
23f27850 |
| 11-Feb-2022 |
Marek Kurdej <[email protected]> |
[clang-format] Avoid multiple calls to FormatToken::getNextNonComment(). NFC.
|
| #
d079995d |
| 02-Feb-2022 |
Marek Kurdej <[email protected]> |
[clang-format] Elide unnecessary braces. NFC.
|
| #
630c7360 |
| 02-Feb-2022 |
Marek Kurdej <[email protected]> |
[clang-format] Elide unnecessary braces. NFC.
|
| #
545317cb |
| 01-Feb-2022 |
Marek Kurdej <[email protected]> |
[clang-format] Use ranged for loops. NFC.
|
| #
81793bd2 |
| 24-Jan-2022 |
Marek Kurdej <[email protected]> |
[clang-format] Assert Line->First and State.NextToken->Previous. NFC.
Cf. scan-build reports: * https://llvm.org/reports/scan-build/report-FormatToken.cpp-precomputeFormattingInfos-35-93e1e1.html#En
[clang-format] Assert Line->First and State.NextToken->Previous. NFC.
Cf. scan-build reports: * https://llvm.org/reports/scan-build/report-FormatToken.cpp-precomputeFormattingInfos-35-93e1e1.html#EndPath * https://llvm.org/reports/scan-build/report-ContinuationIndenter.cpp-addTokenOnCurrentLine-15-dfdc6d.html#EndPath
show more ...
|
| #
966f24e5 |
| 17-Jan-2022 |
Cameron Mulhern <[email protected]> |
[clang-format] Add a BlockIndent option to AlignAfterOpenBracket
This style is similar to AlwaysBreak, but places closing brackets on new lines.
For example, if you have a multiline parameter list,
[clang-format] Add a BlockIndent option to AlignAfterOpenBracket
This style is similar to AlwaysBreak, but places closing brackets on new lines.
For example, if you have a multiline parameter list, clang-format currently only supports breaking per-parameter, but places the closing bracket on the line of the last parameter.
Function( param1, param2, param3);
A style supported by other code styling tools (e.g. rustfmt) is to allow the closing brackets to be placed on their own line, aiding the user in being able to quickly infer the bounds of the block of code.
Function( param1, param2, param3 );
For prior work on a similar feature, see: https://reviews.llvm.org/D33029.
Note: This currently only supports block indentation for closing parentheses.
Differential Revision: https://reviews.llvm.org/D109557
show more ...
|
| #
47a9eb21 |
| 13-Jan-2022 |
Armen Khachkinaev <[email protected]> |
[clang-format] Fix break being added to macro define with ColumnLimit: 0
Fix for #[[ https://github.com/llvm/llvm-project/issues/49164 | 49164 ]] issue.
Reviewed By: MyDeveloperDay, HazardyKnusperk
[clang-format] Fix break being added to macro define with ColumnLimit: 0
Fix for #[[ https://github.com/llvm/llvm-project/issues/49164 | 49164 ]] issue.
Reviewed By: MyDeveloperDay, HazardyKnusperkeks, curdeius, owenpan
Differential Revision: https://reviews.llvm.org/D116859
show more ...
|
| #
d48d1f8e |
| 03-Dec-2021 |
Björn Schäpers <[email protected]> |
[clang-format][NFC] Merge another two calls to isOneOf
Differential Revision: https://reviews.llvm.org/D115069
|
| #
142e79b8 |
| 21-Dec-2021 |
mydeveloperday <[email protected]> |
[clang-format] NFC use recently added Style.isJavaScript()
Improve the readability of these if(Style==FormatStyle::LK_JavsScript) clauses
|
| #
88fa4bfe |
| 03-Dec-2021 |
Björn Schäpers <[email protected]> |
[clang-format][NFC] Use range based for for fake l parens
Differential Revision: https://reviews.llvm.org/D115071
|
| #
4041f16b |
| 03-Dec-2021 |
Björn Schäpers <[email protected]> |
[clang-format][NFC] Early return when nothing to do
Do not compute SkipFirstExtraIndent just to see that there are no fake l parens.
Differential Revision: https://reviews.llvm.org/D115070
|