[clang] [Clang] Rewrite SourceLocExpr in default args (PR #93383)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Sat May 25 23:36:56 PDT 2024


================
@@ -5506,6 +5506,15 @@ struct EnsureImmediateInvocationInDefaultArgs
   // cause it to incorrectly point it to the outermost class
   // in the case of nested struct initialization.
   ExprResult TransformCXXThisExpr(CXXThisExpr *E) { return E; }
+
+  // Rewrite to source location to refer to the context in which they are used
----------------
tbaederr wrote:

```suggestion
  // Rewrite to source location to refer to the context in which they are used.
```

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


More information about the cfe-commits mailing list