[PATCH] D156705: [clang-format] Fix braced initializer formatting with templated base class initializer
Galen Elias via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 31 13:57:55 PDT 2023
galenelias added inline comments.
================
Comment at: clang/unittests/Format/FormatTest.cpp:13461
" A() : a{} {}\n"
+ " A() : Base<int>{} {}\n"
" A(int b) : b(b) {}\n"
----------------
HazardyKnusperkeks wrote:
> Please also add nested templates.
Ok, added `A() : Base<Foo<int>>{} {}` as a test case. I think that's what you mean by nested templates, but let me know if I misunderstood.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156705/new/
https://reviews.llvm.org/D156705
More information about the cfe-commits
mailing list