[PATCH] D142632: [clang][TypePrinter] Support expression template arguments when checking defaultedness
Michael Buch via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 26 11:04:01 PST 2023
Michael137 added inline comments.
================
Comment at: clang/lib/AST/TypePrinter.cpp:2031
+ if (args_expr->isValueDependent() || !args_expr->isIntegerConstantExpr(Ctx))
+ return false;
+
----------------
aprantl wrote:
> Just for my own education: what's an example for a value-dependent constant integer expression?
There is no such case, we're checking it here because it's a pre-condition for `isIntegerConstantExpr`. But we can have value-dependent expressions here like `sizeof(T)` we so can't unconditionally call `isIntegerConstantExpr`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142632/new/
https://reviews.llvm.org/D142632
More information about the cfe-commits
mailing list