summaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-04-02 15:30:45 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-04-02 15:30:45 -0700
commitcf37c9e8dad4349e45cb91d36957484fd76ce264 (patch)
treebf82ec510d3d9b945a5b7ecd705e49272c7687ec /ast.h
parent45d8a70c12ee6ea956baaf898324a828496382f6 (diff)
Additional void parameter checks
If there is a void parameter it must not have a name, and it must be the only parameter.
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h7
1 files changed, 7 insertions, 0 deletions
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;
};