[all-commits] [llvm/llvm-project] 8dd2ef: [clang-format] distinguish multiplication after br...
Krasimir Georgiev via All-commits
all-commits at lists.llvm.org
Fri Jul 15 02:46:13 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8dd2ef2130852e406dab6097b1feb248bf16ce91
https://github.com/llvm/llvm-project/commit/8dd2ef2130852e406dab6097b1feb248bf16ce91
Author: Krasimir Georgiev <krasimir at google.com>
Date: 2022-07-15 (Fri, 15 Jul 2022)
Changed paths:
M clang/lib/Format/TokenAnnotator.cpp
M clang/unittests/Format/FormatTest.cpp
M clang/unittests/Format/TokenAnnotatorTest.cpp
Log Message:
-----------
[clang-format] distinguish multiplication after brace-init from pointer
After https://github.com/llvm/llvm-project/commit/b646f0955574c6ad4c156c9db522e46f597cfda9,
the added regression test started being formatted as-if the
multiplication `*` was a pointer. This adapts the heuristic to
distinguish between these two cases.
Reviewed By: jackhong12, curdeius, HazardyKnusperkeks, owenpan
Differential Revision: https://reviews.llvm.org/D129771
More information about the All-commits
mailing list