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

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 16 03:47:02 PDT 2025


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

So this does not work with `bool foo = requires { static_cast<MyType &&>(1); };`?

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


More information about the cfe-commits mailing list