[PATCH] D75747: [clang-format] Correct indentation for `[key] = value,` entries in C++ object initialisers
Krasimir Georgiev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 9 10:14:16 PDT 2020
krasimir requested changes to this revision.
krasimir added a comment.
This revision now requires changes to proceed.
Looks good! I'll stamp this after https://reviews.llvm.org/D75731 gets merged and this rebased on top of it.
================
Comment at: clang/lib/Format/ContinuationIndenter.cpp:1050
return State.Stack.back().StartOfArraySubscripts;
+ else if (Style.isCSharp()) // C# allows `["key"] = value` inside object initializers.
+ return State.Stack.back().Indent;
----------------
Please address the Pre-merge checks finding.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75747/new/
https://reviews.llvm.org/D75747
More information about the cfe-commits
mailing list