[PATCH] D158505: [clang-format] Fix weird handling of AfterColon
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 23 00:50:37 PDT 2023
owenpan accepted this revision.
owenpan added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang/unittests/Format/FormatTest.cpp:7954
+ verifyFormat(
+ "Class::Class(int some, int arguments, int loooooooooooooonoooooog,\n"
+ " int mooooooooooooore) noexcept :\n"
----------------
`loooooooooooooooooooong`?
================
Comment at: clang/unittests/Format/FormatTest.cpp:7994-7997
verifyFormat("Constructor(aaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n"
- " aaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) :\n"
- " aaaaaaaaaa(aaaaaa) {}",
+ " aaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) : "
+ "aaaaaaaaaa(aaaaaa) {}",
Style);
----------------
Shorten the ctor name so that we don't have to split the line.
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