================
@@ -848,6 +848,8 @@ void ContinuationIndenter::addTokenOnCurrentLine(LineState
&State, bool DryRun,
const auto IsSimpleFunction = [&](const FormatToken &Tok) {
if (!Tok.FakeLParens.empty() && Tok.FakeLParens.back() > prec::Unknown)
return false;
+ if (Tok.is(tok::kw_new))
+ return true;
----------------
owenca wrote:
We can also have `::new`. See https://en.cppreference.com/w/cpp/language/new.
https://github.com/llvm/llvm-project/pull/105168
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits