================ @@ -3622,6 +3622,29 @@ static unsigned maxNestingDepth(const AnnotatedLine &Line) { return Result; } +static bool startsQualifiedName(const FormatToken *Tok) { + // Consider: A::B::B() + // Tok --^ + if (Tok->startsSequence(tok::identifier, tok::coloncolon)) + return true; + + // Consider: A<float>::B<int>::B() + // Tok --^ + if (Tok->startsSequence(tok::identifier, TT_TemplateOpener)) { + Tok = Tok->getNextNonComment(); + assert(Tok); ---------------- HazardyKnusperkeks wrote:
I think you can drop the asserts. https://github.com/llvm/llvm-project/pull/143194 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits