[clang] [clang-format] Correctly annotate token-pasted function decl names (PR #142337)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 2 01:38:24 PDT 2025


================
@@ -3848,6 +3848,8 @@ static bool isFunctionDeclarationName(const LangOptions &LangOpts,
   } else {
     if (Current.isNot(TT_StartOfName) || Current.NestingLevel != 0)
       return false;
+    while (Next && Next->startsSequence(tok::hashhash, tok::identifier))
----------------
owenca wrote:

+1. Updated the test case.

https://github.com/llvm/llvm-project/pull/142337


More information about the cfe-commits mailing list