[clang] [clang][ExprConst] Support virtual bases in C++26 (PR #204289)
Yihan Wang via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 14 06:33:26 PDT 2026
================
@@ -321,7 +321,8 @@ class Compiler : public ConstStmtVisitor<Compiler<Emitter>, bool>,
VarCreationState visitDecl(const VarDecl *VD);
/// Visit an APValue.
bool visitAPValue(const APValue &Val, PrimType ValType, SourceInfo Info);
- bool visitAPValueInitializer(const APValue &Val, SourceInfo Info, QualType T);
+ bool visitAPValueInitializer(const APValue &Val, SourceInfo Info, QualType T,
+ bool Toplevel = true);
----------------
yronglin wrote:
IIUC, we should rename `TopLevel` to `IsCompleteClass`? Because the function definition use `IsCompleteClass`, and `IsCompleteClass` looks more make sense.
https://github.com/llvm/llvm-project/pull/204289
More information about the cfe-commits
mailing list