================ @@ -861,7 +861,7 @@ void ContinuationIndenter::addTokenOnCurrentLine(LineState &State, bool DryRun, // or // caaaaaaaaaaaaaaaaaaaaal( // new SomethingElseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee()); - !IsSimpleFunction(Current)) { + Current.isNot(tok::comment) && !IsSimpleFunction(Current)) { ---------------- kadircet wrote:
would it make sense to introduce this into `IsSimpleFunction` ? similar to handling of `new` keyword in there? possibly just skipping over all of the comments. because we can also have `foo(/*comments*/ new X())`, and i think we still want that inner expression to be treated simple https://github.com/llvm/llvm-project/pull/107506 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits