Moved some complicated checks into convenience functions

This commit is contained in:
Thorbjørn Lindeijer
2009-03-26 16:43:38 +01:00
parent 536320ea1a
commit 5d8ee0d742
3 changed files with 20 additions and 7 deletions

View File

@@ -288,10 +288,16 @@ public:
FullySpecifiedType returnType() const;
void setReturnType(FullySpecifiedType returnType);
/** Convenience function that returns whether the function returns something (including void). */
bool hasReturnType() const;
unsigned argumentCount() const;
Symbol *argumentAt(unsigned index) const;
Scope *arguments() const;
/** Convenience function that returns whether the function receives any arguments. */
bool hasArguments() const;
bool isVariadic() const;
void setVariadic(bool isVariadic);