================ @@ -3651,6 +3674,21 @@ static FormatToken *getFunctionName(const AnnotatedLine &Line, continue; } + // Skip past template typename declarations that may precede the + // constructor/destructor name + if (Tok->is(tok::kw_template)) { ---------------- HazardyKnusperkeks wrote:
Shouldn't this be moved in the loop above? Consider `template<typename T> [[nodiscard]] Foo<T>::Foo() {}`. 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