================
@@ -1023,6 +1023,10 @@ class Expr : public ValueStmt {
return skipRValueSubobjectAdjustments(CommaLHSs, Adjustments);
}
+ /// If the expression is a (possibly parenthesized) string literal
+ /// then make a copy of it.
+ Expr *CloneIfIAmAStringLiteral(ASTContext &Ctx);
----------------
ojhunt wrote:
@zygoloid I know you recommend this approach, but I'm not sure I like it? - it
seems more reasonable (to me) that synthesis of the templated function should
be transforming this node no differently than it would any other node - I'm
also a little worried that not going through that path might miss validation
that the tree transform process does (if it does any :D)
But I don't know what your rationale was for preferring this approach?
https://github.com/llvm/llvm-project/pull/172995
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits