History log of /llvm-project/clang/unittests/Format/TokenAnnotatorTest.cpp (Results 26 – 50 of 240)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 4fd14b9a 21-Sep-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Correctly annotate pointer/reference in range-for loop (#109361)

Fixes #109358.


# 4d18ce1d 18-Sep-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Handle C-style cast of qualified type (#108929)

Fixes #102874.


Revision tags: llvmorg-19.1.0
# 04d71ea1 16-Sep-2024 kadir çetinkaya <kadircet@google.com>

[Format] Dont treat LBrace after extends/implements as initializer list (#108524)

This extends the fix in https://github.com/llvm/llvm-project/pull/106242
for other derived class types.


# 94698369 12-Sep-2024 Owen Pan <owenpiano@gmail.com>

[clang-format][NFC] Minor clean of TokenAnnotatorTest


# bcd586b5 07-Sep-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Fix a bug in annotating CastRParen (#107675)

Fixes #107568.


# 616a8ce6 06-Sep-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Correctly annotate braces in macro definition (#107352)

Also add a test case for #107096.

Fixes #106418.


# 3449ed8d 04-Sep-2024 Owen Pan <owenpiano@gmail.com>

Revert "[clang-format] Correctly annotate braces in macro definition (#106662)"

This reverts commit 0fa78b6c7bd43c2498700a98c47a02cf4fd06388 due to
regression.

Fixes #107096.


# 812c96e8 04-Sep-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Handle pointer/reference in macro definitions (#107074)

A macro definition needs its own scope stack in the annotator, so we add
the MacroBodyScopes stack and use ScopeStack to refer

[clang-format] Handle pointer/reference in macro definitions (#107074)

A macro definition needs its own scope stack in the annotator, so we add
the MacroBodyScopes stack and use ScopeStack to refer to it when in the
macro definition body.

Also, we need to have a scope type for a child block because its parent
line is parsed (and thus the scope type for the braces is popped off the
scope stack) before the lines in the child block are.

Fixes #99271.

show more ...


# a27ff170 04-Sep-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Fix a regression in annotating ObjCBlockLParen (#107021)

Fixes #106994.


Revision tags: llvmorg-19.1.0-rc4
# 0fa78b6c 02-Sep-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Correctly annotate braces in macro definition (#106662)

Fixes #106418.


# e0f2368c 31-Aug-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Correctly annotate braces in ObjC square brackets (#106654)

See
https://github.com/llvm/llvm-project/pull/88238#issuecomment-2316954781.


# 7579787e 30-Aug-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Correctly identify token-pasted record names (#106484)

See
https://github.com/llvm/llvm-project/pull/89706#issuecomment-2315549955.


# 438ad9f2 29-Aug-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Revert "[clang-format][NFC] Delete TT_LambdaArrow (#70… (#105923)

…519)"

This reverts commit e00d32afb9d33a1eca48e2b041c9688436706c5b and adds a
test for lambda arrow SplitPenalty

[clang-format] Revert "[clang-format][NFC] Delete TT_LambdaArrow (#70… (#105923)

…519)"

This reverts commit e00d32afb9d33a1eca48e2b041c9688436706c5b and adds a
test for lambda arrow SplitPenalty.

Fixes #105480.

show more ...


# 77d63cfd 28-Aug-2024 Krasimir Georgiev <krasimir@google.com>

[clang-format] js handle anonymous classes (#106242)

Addresses a regression in JavaScript when formatting anonymous classes.

---------

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


# 0916ae49 25-Aug-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Fix a misannotation of less/greater as angle brackets (#105941)

Fixes #105877.


# 6bc225e0 25-Aug-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Fix a misannotation of redundant r_paren as CastRParen (#105921)

Fixes #105880.


Revision tags: llvmorg-19.1.0-rc3
# 3496245e 18-Aug-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Change GNU style language standard to LS_Latest (#104669)

Fixes #104655.


# ee235996 13-Aug-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Fix annotation of braces enclosing stringification (#102998)

Fixes #102937.


# 8c7a038f 08-Aug-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Fix a bug in annotating CastRParen (#102261)

Fixes #102102.


Revision tags: llvmorg-19.1.0-rc2
# 8abdf7cc 02-Aug-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Fix a misannotation of PointerOrReference (#101291)

Fixes #101138.


# 73c961a3 30-Jul-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Fix misannotations of `<` in ternary expressions (#100980)

Fixes #100300.


Revision tags: llvmorg-19.1.0-rc1
# ccae7b46 25-Jul-2024 Gedare Bloom <gedare@rtems.org>

[clang-format] Improve BlockIndent at ColumnLimit (#93140)

Fixes #55731

The reported formatting problems were related to ignoring deep nesting
of "simple" functions (causing #54808) and to allow

[clang-format] Improve BlockIndent at ColumnLimit (#93140)

Fixes #55731

The reported formatting problems were related to ignoring deep nesting
of "simple" functions (causing #54808) and to allowing the trailing
annotation to become separated from the closing parens, which allowed a
break to occur between the closing parens and the trailing annotation.
The fix for the nesting of "simple" functions is to detect them more
carefully. "Simple" was defined in a comment as being a single
non-expression argument. I tried to stay as close to the original intent
of the implementation while fixing the various bad formatting reports.

In the process of fixing these bugs, some latent bugs were discovered
related to how JavaScript Template Strings are handled. Those are also
fixed here.

---------

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

show more ...


# 7e7a9069 25-Jul-2024 Owen Pan <owenpiano@gmail.com>

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

This reverts commit ce1a87437cc143889665c41046107e84cdf6246e.

Closes #100304.


Revision tags: llvmorg-20-init
# 0387cd05 21-Jul-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Fix a bug in annotating FunctionAnnotationRParen (#99802)

Fixes #37906.


# dcebe297 21-Jul-2024 Owen Pan <owenpiano@gmail.com>

[clang-format] Fix a bug in annotating StartOfName (#99791)

Fixes #99758.


12345678910