[clang] [clang-format] Treat new expressions as simple functions (PR #105168)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 22 22:35:03 PDT 2024
================
@@ -848,6 +848,11 @@ void ContinuationIndenter::addTokenOnCurrentLine(LineState &State, bool DryRun,
const auto IsSimpleFunction = [&](const FormatToken &Tok) {
if (!Tok.FakeLParens.empty() && Tok.FakeLParens.back() > prec::Unknown)
return false;
+ // Nested calls that inolve `new` expressions also look like simple
----------------
owenca wrote:
Typo: `involve`
https://github.com/llvm/llvm-project/pull/105168
More information about the cfe-commits
mailing list