History log of /llvm-project/clang/unittests/Format/TokenAnnotatorTest.cpp (Results 76 – 100 of 240)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# b6cc6671 18-Apr-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Annotate ampamp after new/delete as BinaryOperator (#89033)

Fixes #78789.


# 29ecd6d5 18-Apr-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Revert breaking stream operators to previous default (#89016)

Reverts commit d68826dfbd98, which changes the previous default behavior
of always breaking before a stream insertion op

[clang-format] Revert breaking stream operators to previous default (#89016)

Reverts commit d68826dfbd98, which changes the previous default behavior
of always breaking before a stream insertion operator `<<` if both
operands are string literals.

Also reverts the related commits 27f547968cce and bf05be5b87fc.

See the discussion in #88483.

show more ...


Revision tags: llvmorg-18.1.4
# 51f16814 11-Apr-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Don't merge a short block for SBS_Never (#88238)

Also fix unit tests.

Fixes #87484.


# bcf849b1 10-Apr-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] instanceof is a keyword only in Java/JavaScript (#88085)

Fixes #87907.


# 58323de2 10-Apr-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Correctly annotate braces in macros (#87953)

Also fix unit tests and reformat polly.

Fixes #86550.


# 7c9c38ea 05-Apr-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Fix a regression in annotating BK_BracedInit (#87450)

Fixes #86539.


Revision tags: llvmorg-18.1.3
# a7f4576f 02-Apr-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Fix a regression in annotating TrailingReturnArrow (#86624)

Fixes #86559.


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


# 7c460c62 16-Mar-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Fix a bug in annotating FunctionDeclarationName (#85361)

A name is not a FunctionDeclarationName if it's preceded by an
Objective-C keyword.

Fixes #84578.


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


# 0baef3b1 09-Mar-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Handle common C++ non-keyword types as such (#83709)

Fixes #83400.


Revision tags: llvmorg-18.1.1, llvmorg-18.1.0, llvmorg-18.1.0-rc4, llvmorg-18.1.0-rc3
# 8de23009 19-Feb-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Correctly annotate braces of empty ctors/dtors (#82097)

Also reformat Polly.

Fixes #79834.


# 6a471611 12-Feb-2024 Hirofumi Nakamura <k.nakamura.hirofumi@gmail.com>

[clang-format] Support of TableGen value annotations. (#80299)

This implements the annotation of the values in TableGen.
The main changes are,

- parseTableGenValue(), the simplified parser metho

[clang-format] Support of TableGen value annotations. (#80299)

This implements the annotation of the values in TableGen.
The main changes are,

- parseTableGenValue(), the simplified parser method for the syntax of
values.
- modified consumeToken() to parseTableGenValue in 'if', 'assert' and
after '='.
- modified parseParens() to call parseTableGenValue inside.
- modified parseSquare() to to call parseTableGenValue inside, with
skipping separator tokens.
- modified parseAngle() to call parseTableGenValue inside, with skipping
separator tokens.

show more ...


Revision tags: llvmorg-18.1.0-rc2
# 7e7f1184 01-Feb-2024 XDeme <tagawafernando@gmail.com>

[clang-format] Handles Elaborated type specifier for enum in trailing return (#80085)

Fixes llvm/llvm-project#80062


# 9b68c095 01-Feb-2024 Emilia Kond <emilia@rymiel.space>

[clang-format] Allow decltype in requires clause (#78847)

If clang-format is not sure whether a `requires` keyword starts a
requires clause or a requires expression, it looks ahead to see if any
t

[clang-format] Allow decltype in requires clause (#78847)

If clang-format is not sure whether a `requires` keyword starts a
requires clause or a requires expression, it looks ahead to see if any
token disqualifies it from being a requires clause. Among these tokens
was `decltype`, since it fell through the switch.

This patch allows decltype to exist in a require clause.

I'm not 100% sure this change won't have repercussions, but that just
means we need more test coverage!

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

show more ...


# 00582636 30-Jan-2024 Hirofumi Nakamura <k.nakamura.hirofumi@gmail.com>

[clang-format] Support of TableGen tokens with unary operator like form, bang operators and numeric literals. (#78996)

Adds the support for tokens that have forms like unary operators.
- bang opera

[clang-format] Support of TableGen tokens with unary operator like form, bang operators and numeric literals. (#78996)

Adds the support for tokens that have forms like unary operators.
- bang operators: `!name`
- cond operator: `!cond`
- numeric literals: `+1`, `-1`
cond operator are one of bang operators but is distinguished because it has very specific syntax.

show more ...


Revision tags: llvmorg-18.1.0-rc1
# f826f55b 27-Jan-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Fix a bug in AnnotatingParser::rParenEndsCast() (#79549)

Fixes #78965.


Revision tags: llvmorg-19-init
# 88d1de5e 22-Jan-2024 Emilia Kond <emilia@rymiel.space>

[clang-format][NFC] Unify token size tests to use ASSERT_EQ


# df4ba00c 22-Jan-2024 Hirofumi Nakamura <k.nakamura.hirofumi@gmail.com>

[clang-format] Support of TableGen statements in unwrapped line parser (#78846)

Make TableGen's statements to be parsed considering their structure.
- Avoid to parse label
- Avoid class from being

[clang-format] Support of TableGen statements in unwrapped line parser (#78846)

Make TableGen's statements to be parsed considering their structure.
- Avoid to parse label
- Avoid class from being parsed as c++'s class
- Support if statement of the form `if <cond> then { ... }`
- Support defset statement of the form `defset <type> <name> {}`

---------

Co-authored-by: Björn Schäpers <github@hazardy.de>

show more ...


# a464e051 20-Jan-2024 XDeme <66138117+XDeme@users.noreply.github.com>

[clang-format] Handle templated elaborated type specifier in function… (#77013)

… return type.

The behavior now is consistent with the non template version.
Enabled and updated old test.


# fcb6737f 20-Jan-2024 Hirofumi Nakamura <k.nakamura.hirofumi@gmail.com>

[clang-format] Support of TableGen identifiers beginning with a number. (#78571)

TableGen allows the identifiers beginning with a number.
This patch add the support of the recognition of such ident

[clang-format] Support of TableGen identifiers beginning with a number. (#78571)

TableGen allows the identifiers beginning with a number.
This patch add the support of the recognition of such identifiers.

show more ...


12345678910