diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2011-05-09 13:52:03 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2011-05-09 14:00:32 +0200 |
commit | 908d73f0d004cc5af5b846eacf94a2f97dec349d (patch) | |
tree | b92554e2b9ba693a13d9814145dbfbc7275b6c2a /src/shared/cplusplus/Control.cpp | |
parent | 49814d9ea5dbcfc14cee09dc221a43c2ab9bbc65 (diff) | |
download | qt-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.cpp | 10 |
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); } |