summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/Symbols.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-03-26 16:43:38 +0100
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-03-26 16:54:20 +0100
commit5d8ee0d742ef591c23b99bdce29ddd4a4553e98d (patch)
treeea63f3322a2b06f5034afe4c933566a48dccdedb /src/shared/cplusplus/Symbols.h
parent536320ea1ac63c83b6e6777a0dabe7d47e9ba8cd (diff)
downloadqt-creator-5d8ee0d742ef591c23b99bdce29ddd4a4553e98d.tar.gz
Moved some complicated checks into convenience functions
Diffstat (limited to 'src/shared/cplusplus/Symbols.h')
-rw-r--r--src/shared/cplusplus/Symbols.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Symbols.h b/src/shared/cplusplus/Symbols.h
index 8efc0fbdbe..4052b746da 100644
--- a/src/shared/cplusplus/Symbols.h
+++ b/src/shared/cplusplus/Symbols.h
@@ -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);