[clang] [AST] Dump argument types for TypeTraitExpr. (PR #89370)

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 22 05:04:42 PDT 2024


hokein wrote:

> It seems to me that exposing these as children is the better option here, right? That way it would better model a CallExpr or template type-trait, and would work in our StmtProfiler et-al.

Agree that exposing them as children is better. However, we encounter an implementation limitation.

For `Expr` subclasses, their children must be a `Stmt`. The `TypeTraitExpr` doesn't meet this requirement because its arguments are types `TypeSourceInfo`.

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


More information about the cfe-commits mailing list