[clang] [clang-format] Handle templates in qualified typenames (PR #143194)
Ben Dunkin via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 12 16:00:25 PDT 2025
================
@@ -3659,9 +3697,23 @@ static FormatToken *getFunctionName(const AnnotatedLine &Line,
}
// Skip to the unqualified part of the name.
- while (Tok->startsSequence(tok::identifier, tok::coloncolon)) {
- assert(Tok->Next);
- Tok = Tok->Next->Next;
+ while (startsQualifiedName(Tok)) {
----------------
bdunkin wrote:
I have done this, and renamed it `skipNameQualifier` to reflect the new behaviour.
https://github.com/llvm/llvm-project/pull/143194
More information about the cfe-commits
mailing list