summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/Control.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2011-05-09 13:52:03 +0200
committerErik Verbruggen <erik.verbruggen@nokia.com>2011-05-09 14:00:32 +0200
commit908d73f0d004cc5af5b846eacf94a2f97dec349d (patch)
treeb92554e2b9ba693a13d9814145dbfbc7275b6c2a /src/shared/cplusplus/Control.cpp
parent49814d9ea5dbcfc14cee09dc221a43c2ab9bbc65 (diff)
downloadqt-creator-908d73f0d004cc5af5b846eacf94a2f97dec349d.tar.gz
Added the Enumerator class as a special Declaration.
Reviewed-by: Roberto Raggi
Diffstat (limited to 'src/shared/cplusplus/Control.cpp')
-rw-r--r--src/shared/cplusplus/Control.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Control.cpp b/src/shared/cplusplus/Control.cpp
index 557b5b0fc5..3492077a94 100644
--- a/src/shared/cplusplus/Control.cpp
+++ b/src/shared/cplusplus/Control.cpp
@@ -326,6 +326,13 @@ public:
return declaration;
}
+ EnumeratorDeclaration *newEnumeratorDeclaration(unsigned sourceLocation, const Name *name)
+ {
+ EnumeratorDeclaration *decl = new EnumeratorDeclaration(translationUnit, sourceLocation, name);
+ symbols.push_back(decl);
+ return decl;
+ }
+
Argument *newArgument(unsigned sourceLocation, const Name *name)
{
Argument *argument = new Argument(translationUnit, sourceLocation, name);
@@ -713,6 +720,9 @@ Block *Control::newBlock(unsigned sourceLocation)
Declaration *Control::newDeclaration(unsigned sourceLocation, const Name *name)
{ return d->newDeclaration(sourceLocation, name); }
+EnumeratorDeclaration *Control::newEnumeratorDeclaration(unsigned sourceLocation, const Name *name)
+{ return d->newEnumeratorDeclaration(sourceLocation, name); }
+
UsingNamespaceDirective *Control::newUsingNamespaceDirective(unsigned sourceLocation,
const Name *name)
{ return d->newUsingNamespaceDirective(sourceLocation, name); }