[PATCH] D158505: [clang-format] Fix weird handling of AfterColon
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 22 04:20:53 PDT 2023
HazardyKnusperkeks added inline comments.
================
Comment at: clang/unittests/Format/FormatTest.cpp:7995
verifyFormat("Constructor(aaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n"
- " aaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) :\n"
- " aaaaaaaaaa(aaaaaa) {}",
+ " aaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) : "
+ "aaaaaaaaaa(aaaaaa) {}",
----------------
I know we usually don't change existing tests. But I sincerely think this a bug. From the documentation I don't see any reason why there should be a line break.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158505/new/
https://reviews.llvm.org/D158505
More information about the cfe-commits
mailing list