From cf37c9e8dad4349e45cb91d36957484fd76ce264 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 2 Apr 2010 15:30:45 -0700 Subject: Additional void parameter checks If there is a void parameter it must not have a name, and it must be the only parameter. --- ast.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ast.h') diff --git a/ast.h b/ast.h index 37df4a0e08..f73e74906f 100644 --- a/ast.h +++ b/ast.h @@ -440,6 +440,13 @@ public: private: /** Is this parameter declaration part of a formal parameter list? */ bool formal_parameter; + + /** + * Is this parameter 'void' type? + * + * This field is set by \c ::hir. + */ + bool is_void; }; -- cgit v1.2.3