[PATCH] D93296: [clang-format] PR35514 brace-init member initializers in function-try-blocks are not formatted correctly
Marek Kurdej via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 16 01:53:42 PST 2020
curdeius accepted this revision.
curdeius added a comment.
I'd like to see a test with braces inside the try (intoducing scope), just to verify it doesn't break.
E.g.:
verifyFormat("class A {\n"
" int a;\n"
" A() try : a(0), b{1}, c{2} {\n"
" { // New scope.\n"
" }\n"
" } catch (...) {\n"
" throw;\n"
" }\n"
"};\n");
Otherwise LGTM.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93296/new/
https://reviews.llvm.org/D93296
More information about the cfe-commits
mailing list