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

Shahid Iqbal via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 27 02:06:06 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;
+  }
----------------
shahidiqbal13 wrote:

It might impact on the testcases failure , but I will check otherwise it will remain this

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


More information about the cfe-commits mailing list