[clang-format] distinguish function type casts after 21c18d5a04316891110cecc2bf37ce51...
authorKrasimir Georgiev <krasimir@google.com>
Tue, 15 Jun 2021 08:28:25 +0000 (10:28 +0200)
committerKrasimir Georgiev <krasimir@google.com>
Tue, 15 Jun 2021 08:28:36 +0000 (10:28 +0200)
commit54bd95cd96bc7305219b594f95d7d1f447ee4c94
treede6212a03c4757f900540c49fc4def394c266676
parentb6ab4f1a8b6546b67dbcc3612f33c26d9b72a5cc
[clang-format] distinguish function type casts after 21c18d5a04316891110cecc2bf37ce51533decba

https://github.com/llvm/llvm-project/commit/21c18d5a04316891110cecc2bf37ce51533decba
improved the detection of multiplication in function call argument lists,
but unintentionally regressed the handling of function type casts (there
were no tests covering those).
This patch improves the detection of function type casts and adds a few tests.

Reviewed By: HazardyKnusperkeks

Differential Revision: https://reviews.llvm.org/D104209
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp