History log of /llvm-project/clang/unittests/Format/TokenAnnotatorTest.cpp (Results 51 – 75 of 240)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# ce1a8743 20-Jul-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Fix a bug in annotating `*` in `#define`s (#99433)

Fixes #99271.


# b2ac7f52 10-Jul-2024 Owen Pan <owenpiano@gmail.com>

[clang-format][NFC] Annotate function/ctor/dtor declaration l_paren (#97938)


# 834ac2e2 29-Jun-2024 Emilia Kond <emilia@rymiel.space>

[clang-format] Allow ternary in all templates (#96801)

Currently, question mark and colon tokens are not allowed between angle
brackets, as a template argument, if we are in an expression context.

[clang-format] Allow ternary in all templates (#96801)

Currently, question mark and colon tokens are not allowed between angle
brackets, as a template argument, if we are in an expression context.

However, expressions can still allowed in non-expression contexts,
leading to inconsistent formatting.

Removing this check entirely fixes this issue, and, surprisingly, breaks
no tests.

Fixes https://github.com/llvm/llvm-project/issues/81385

show more ...


# 6621505a 22-Jun-2024 Emilia Kond <emilia@rymiel.space>

[clang-format] Don't count template template parameter as declaration (#96396)

Reapply 4a7bf42a9b83144db8a11ac06cce4da21166e6a2
which was reverted in 34d44eb41dfbbbf01712719558b02763334fbeb3

Not

[clang-format] Don't count template template parameter as declaration (#96396)

Reapply 4a7bf42a9b83144db8a11ac06cce4da21166e6a2
which was reverted in 34d44eb41dfbbbf01712719558b02763334fbeb3

Not sure why there are tests elsewhere in clang that rely on the output
of clang-format, but they were wrong

show more ...


# 34d44eb4 22-Jun-2024 Mehdi Amini <joker.eph@gmail.com>

Revert "[clang-format] Don't count template template parameter as declaration" (#96388)

Reverts llvm/llvm-project#95025 ; many bots are broken


# 4a7bf42a 22-Jun-2024 Emilia Kond <emilia@rymiel.space>

[clang-format] Don't count template template parameter as declaration (#95025)

In ContinuationIndenter::mustBreak, a break is required between a
template declaration and the function/class declarat

[clang-format] Don't count template template parameter as declaration (#95025)

In ContinuationIndenter::mustBreak, a break is required between a
template declaration and the function/class declaration it applies to,
if the template declaration spans multiple lines.

However, this also includes template template parameters, which can
cause extra erroneous line breaks in some declarations.

This patch makes template template parameters not be counted as template
declarations.

Fixes https://github.com/llvm/llvm-project/issues/93793
Fixes https://github.com/llvm/llvm-project/issues/48746

show more ...


# d69050d6 22-Jun-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Annotate r_paren before braced list as TT_CastRParen (#96271)

Fixes #96096.


# fa00e8bb 20-Jun-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Correctly annotate l_brace after TypenameMacro (#96026)

Closes #95418.


# 61571e90 19-Jun-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Handle function try block with ctor-initializer (#95878)

Fixes #58987.
Fixes #95679.


Revision tags: llvmorg-18.1.8
# 82e19318 12-Jun-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Fix a bug in annotating lambda l_square (#95084)

Fixes #95072.


# a10135f4 07-Jun-2024 Gedare Bloom <gedare@rtems.org>

[clang-format]: Annotate colons found in inline assembly (#92617)

Short-circuit the parsing of tok::colon to label colons found within
lines starting with asm as InlineASMColon.

Fixes #92616.

[clang-format]: Annotate colons found in inline assembly (#92617)

Short-circuit the parsing of tok::colon to label colons found within
lines starting with asm as InlineASMColon.

Fixes #92616.

---------

Co-authored-by: Owen Pan <owenpiano@gmail.com>

show more ...


Revision tags: llvmorg-18.1.7
# 13f67978 03-Jun-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Handle AttributeMacros in parseRecord() (#94189)

Fixes #94184.


# f06f0164 02-Jun-2024 Owen Pan <owenpiano@gmail.com>

[clang-format][NFC] Add missing parens of __attribute in unit tests


# 80303cb2 02-Jun-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Handle attributes before lambda return arrow (#94119)

Fixes #92657.


# 3db1f311 30-May-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Fix a regression in annotating class decl braces (#93657)

Fixes #93604.


# a6d97dec 22-May-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Correctly annotate C++ alternative operators in C (#92880)

PR #90161 uncovered a bug that annotates C++ xor as UnaryOperator if
followed by a binary operator. This patch fixes that a

[clang-format] Correctly annotate C++ alternative operators in C (#92880)

PR #90161 uncovered a bug that annotates C++ xor as UnaryOperator if
followed by a binary operator. This patch fixes that and all other C++
alternative operator keywords when followed by a binary operator in C.

Fixes #92688.

show more ...


# d89f2005 21-May-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Fix a bug in formatting goto labels in macros (#92494)

Fixes #92300.


# 1c58208d 21-May-2024 Owen Pan <owenpiano@gmail.com>

[clang-format][NFC] Remove redundnat llvm::, clang::, etc.


Revision tags: llvmorg-18.1.6
# 88d351e2 17-May-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Fix a regression in annotating struct braces (#92352)

Fixes #92350.


# 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.


# c609043d 06-May-2024 Emilia Kond <emilia@rymiel.space>

[clang-format] Don't allow comma in front of structural enum (#91056)

Assume that a comma in front of `enum` means it is actually a part of an
elaborated type in a template parameter list.

Fixes

[clang-format] Don't allow comma in front of structural enum (#91056)

Assume that a comma in front of `enum` means it is actually a part of an
elaborated type in a template parameter list.

Fixes https://github.com/llvm/llvm-project/issues/47782

show more ...


Revision tags: llvmorg-18.1.5
# 8e9b1e9a 01-May-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Fix a bug in annotating struct braces (#90555)

Fixes #60040.


# 4b10ade1 25-Apr-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Annotate enum braces as BK_Block (#89871)

Fixes #89759.


# 469c8a0a 24-Apr-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Correctly annotate list init braces of class types (#89706)

Fixes #71939.


# c455b462 20-Apr-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Fix a bug in annotating CastRParen before unary && (#89346)

Also fix a bug in annotating TrailingAnnotation.

Closes #61233.


12345678910