================
@@ -54,14 +54,24 @@ inline bool IsLifetimeSafetyEnabled(Sema &S, const Decl *D)
{
return false;
}
+inline StringRef formatExpr(const Expr *E) {
+ const Expr *PureExpr = E->IgnoreImpCasts();
----------------
suoyuan666 wrote:
Hi, please take a look at my latest commit. I added `extractExpr` to extract
the expressions that are actually needed.
My previous wording may not have been very accurate. What I meant is that
`buildXXXChains` cannot possibly make Sema diagnostics obtain the
`ImplicitCastExpr` and the following `DeclRefExpr` if it only does something as
simple as `vector.push(SrcOrigin.getExpr())`.
https://github.com/llvm/llvm-project/pull/199345
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits