[clang] Issue #63106: [сlang] Representation of ellipsis in AST (PR #80976)

Chuanqi Xu via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 26 18:07:57 PST 2024


================
@@ -1474,6 +1478,16 @@ class VarDecl : public DeclaratorDecl, public Redeclarable<VarDecl> {
     NonParmVarDeclBits.ExceptionVar = EV;
   }
 
+  /// Determine the Ellipsis (...) or not
+  bool isEllipsisVariable() const {
+    return isa<ParmVarDecl>(this) ? false : NonParmVarDeclBits.EllipsisVar;
+  }
+  void setEllipsisVariable(bool EV) {
+    assert(!isa<ParmVarDecl>(this));
+    NonParmVarDeclBits.EllipsisVar = EV;
+  }
----------------
ChuanqiXu9 wrote:

Should we move this to ParmVarDecl?

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


More information about the cfe-commits mailing list