[clang] [libclang] Fix evaluation of parenthesized string initializers (PR #243317)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 2 00:21:33 PST 2026
================
@@ -4748,7 +4748,7 @@ static const ExprEvalResult *evaluateExpr(Expr *expr, CXCursor C) {
if (expr->getStmtClass() == Stmt::ImplicitCastExprClass) {
const auto *I = cast<ImplicitCastExpr>(expr);
- auto *subExpr = I->getSubExprAsWritten();
+ auto *subExpr = I->getSubExprAsWritten()->IgnoreParens();
----------------
Endilll wrote:
I'm not going to have time to look at this until next week, and this is also Aaron's last week this year. I'm sorry you did so much work in this unfortunate time of the year.
https://github.com/llvm/llvm-project/pull/243317
More information about the cfe-commits
mailing list