Revision tags: llvmorg-18.1.8, llvmorg-18.1.7, llvmorg-18.1.6 |
|
#
9267f8f1 |
| 06-May-2024 |
sstwcw <su3e8a96kzlver@posteo.net> |
[clang-format] Add option to remove leading blank lines (#91221)
The options regarding which blank lines are kept are also aggregated. The new option is `KeepEmptyLines`.
|
#
fe9aef05 |
| 16-Jun-2024 |
pointhex <1111artem1111@gmail.com> |
[clang-format] Add DiagHandler parameter to format::getStyle() (#91317)
It allows to control of error output for the function.
Closes #94205.
---------
Co-authored-by: Owen Pan <owenpiano@g
[clang-format] Add DiagHandler parameter to format::getStyle() (#91317)
It allows to control of error output for the function.
Closes #94205.
---------
Co-authored-by: Owen Pan <owenpiano@gmail.com>
show more ...
|
#
dba2aa26 |
| 27-May-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Add LeftWithLastLine to AlignEscapedNewlines option (#93402)
Closes #92999.
|
#
1c58208d |
| 21-May-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format][NFC] Remove redundnat llvm::, clang::, etc.
|
#
364f988d |
| 14-May-2024 |
Owen Pan <owenpiano@gmail.com> |
Reland "[clang-format] Fix FormatToken::isSimpleTypeSpecifier() (#91712)"
Remove FormatToken::isSimpleTypeSpecifier() and call Token::isSimpleTypeSpecifier(LangOpts) instead.
|
#
1fadb2b0 |
| 13-May-2024 |
Owen Pan <owenpiano@gmail.com> |
Revert "[clang-format] Fix FormatToken::isSimpleTypeSpecifier() (#91712)"
This reverts commits e62ce1f8842c, 5cd280433e8e, and de641e289269 due to buildbot failures.
|
#
deffae5d |
| 11-May-2024 |
Kazu Hirata <kazu@google.com> |
[clang] Use StringRef::operator== instead of StringRef::equals (NFC) (#91844)
I'm planning to remove StringRef::equals in favor of
StringRef::operator==.
- StringRef::operator==/!= outnumber Str
[clang] Use StringRef::operator== instead of StringRef::equals (NFC) (#91844)
I'm planning to remove StringRef::equals in favor of
StringRef::operator==.
- StringRef::operator==/!= outnumber StringRef::equals by a factor of
24 under clang/ in terms of their usage.
- The elimination of StringRef::equals brings StringRef closer to
std::string_view, which has operator== but not equals.
- S == "foo" is more readable than S.equals("foo"), especially for
!Long.Expression.equals("str") vs Long.Expression != "str".
show more ...
|
#
e62ce1f8 |
| 11-May-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Fix FormatToken::isSimpleTypeSpecifier() (#91712)
Remove FormatToken::isSimpleTypeSpecifier() and call
Token::isSimpleTypeSpecifier(LangOpts) instead.
|
#
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 |
|
#
2de0bedf |
| 26-Apr-2024 |
NorthBlue333 <43409865+NorthBlue333@users.noreply.github.com> |
[clang-format] Do not update cursor pos if no includes replacement (#77456)
Fix https://github.com/llvm/llvm-project/issues/77450.
---------
Signed-off-by: NorthBlue333 <north333@free.fr>
Co-
[clang-format] Do not update cursor pos if no includes replacement (#77456)
Fix https://github.com/llvm/llvm-project/issues/77450.
---------
Signed-off-by: NorthBlue333 <north333@free.fr>
Co-authored-by: Owen Pan <owenpiano@gmail.com>
show more ...
|
#
2c5d7a88 |
| 25-Apr-2024 |
Jannik Silvanus <37809848+jasilvanus@users.noreply.github.com> |
[clang-format] Remove YAML hack to emit a BasedOnStyle comment (#89228)
When serializing a formatting style to YAML, we were emitting a comment
`# BasedOnStyle: <style>` if the serialized formattin
[clang-format] Remove YAML hack to emit a BasedOnStyle comment (#89228)
When serializing a formatting style to YAML, we were emitting a comment
`# BasedOnStyle: <style>` if the serialized formatting style matches one
of the known styles. This is useful, but mis-uses the YAML API.
An upcoming change to fix keys with special characters by quoting them
breaks this,
and will emit a non-comment **key** `'# BasedOnStyle': <style>` instead.
(https://github.com/llvm/llvm-project/pull/88763)
Thus, remove this hack. There doesn't seem to be a specific use for it,
and it is not tested.
If we want the comment back, we should add comment support to the YAML writer,
and use that instead.
show more ...
|
Revision tags: llvmorg-18.1.4 |
|
#
6dbd4bb3 |
| 12-Apr-2024 |
Jing Wang <2019426+jingw@users.noreply.github.com> |
Add txtpb to the list of supported TextProto extensions (#88355)
According to
https://protobuf.dev/reference/protobuf/textformat-spec/#text-format-files,
txtpb is the canonical extension
Co-aut
Add txtpb to the list of supported TextProto extensions (#88355)
According to
https://protobuf.dev/reference/protobuf/textformat-spec/#text-format-files,
txtpb is the canonical extension
Co-authored-by: Jing Wang <99jingw@gmail.com>
show more ...
|
#
72e2e4f7 |
| 03-Apr-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format] Lambda parameter should be passed by const reference (#87306)
Closes #87254.
|
Revision tags: llvmorg-18.1.3 |
|
#
13be0d4a |
| 02-Apr-2024 |
Ameer J <52414509+ameerj@users.noreply.github.com> |
[clang-format] Add BreakFunctionDefinitionParameters option (#84988)
This adds an option to break function definition parameters, putting
them on the next line after the function's opening paren.
[clang-format] Add BreakFunctionDefinitionParameters option (#84988)
This adds an option to break function definition parameters, putting
them on the next line after the function's opening paren.
This was a missing step towards allowing styles which require all
function definition parameters be on their own lines.
Closes #62963
show more ...
|
#
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.
|
#
6f31cf51 |
| 20-Mar-2024 |
Owen Pan <owenpiano@gmail.com> |
Revert "[clang-format][NFC] Eliminate the IsCpp parameter in all functions (#84599)"
This reverts c3a1eb6207d8 (and the related commit f3c5278efa3b) which makes cleanupAroundReplacements() no longer
Revert "[clang-format][NFC] Eliminate the IsCpp parameter in all functions (#84599)"
This reverts c3a1eb6207d8 (and the related commit f3c5278efa3b) which makes cleanupAroundReplacements() no longer thread-safe.
show more ...
|
Revision tags: llvmorg-18.1.2 |
|
#
0c423af5 |
| 18-Mar-2024 |
Hirofumi Nakamura <k.nakamura.hirofumi@gmail.com> |
[clang-format] Add Options to break inside the TableGen DAGArg. (#83149)
Add two options to control the line break inside TableGen DAGArg.
- TableGenBreakInsideDAGArg
- TableGenBreakingDAGArgOpera
[clang-format] Add Options to break inside the TableGen DAGArg. (#83149)
Add two options to control the line break inside TableGen DAGArg.
- TableGenBreakInsideDAGArg
- TableGenBreakingDAGArgOperators
show more ...
|
#
f3c5278e |
| 17-Mar-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format][NFC] Don't export IsCpp in Format.h
|
#
426e6945 |
| 16-Mar-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format][NFC] Delete redundant and extraneous #include lines
|
#
c3a1eb62 |
| 15-Mar-2024 |
Owen Pan <owenpiano@gmail.com> |
Reland [clang-format][NFC] Eliminate the IsCpp parameter in all functions (#84599)
Initialize IsCpp in LeftRightQualifierAlignmentFixer ctor.
|
#
b0d1e32c |
| 15-Mar-2024 |
Mehdi Amini <joker.eph@gmail.com> |
Revert "[clang-format][NFC] Eliminate the IsCpp parameter in all functions" (#85353)
Reverts llvm/llvm-project#84599
This broke the presubmit bot.
|
#
0c071029 |
| 15-Mar-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format][NFC] Eliminate the IsCpp parameter in all functions (#84599)
|
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.
|
#
b2a4f64e |
| 27-Feb-2024 |
Owen Pan <owenpiano@gmail.com> |
[clang-format][NFC] Skip ObjCHeaderStyleGuesser for empty code (#82957)
|
#
046682ef |
| 26-Feb-2024 |
Hirofumi Nakamura <k.nakamura.hirofumi@gmail.com> |
[clang-format] Add AlignConsecutiveTableGenCondOperatorColons option. (#82878)
To align colons inside TableGen !cond operators.
|