[clang] [clang-format] Fix a regression of annotating PointerOrReference (PR #149039)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 16 19:46:31 PDT 2025


================
@@ -3122,6 +3122,9 @@ class AnnotatingParser {
       }
     }
 
+    if (PrevToken->isTypeName(LangOpts))
----------------
owenca wrote:

It works if `TypeNames: [MyType]` is added to the config, but I've added a heuristic so that it won't be necessary.

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


More information about the cfe-commits mailing list