[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


================
@@ -16983,7 +16983,7 @@ VarDecl *Sema::BuildExceptionDeclaration(Scope *S,
 
 /// ActOnExceptionDeclarator - Parsed the exception-declarator in a C++ catch
 /// handler.
-Decl *Sema::ActOnExceptionDeclarator(Scope *S, Declarator &D) {
+Decl *Sema::ActOnExceptionDeclarator(Scope *S, Declarator &D, bool isCatchAll) {
----------------
ChuanqiXu9 wrote:

I am hesitate on this. IIUC, previously the `catch(...)` format is reprensented as the exception decl as nullptr? Then if yes, we should be able to reuse that.

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


More information about the cfe-commits mailing list