diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-12-08 11:58:27 +0100 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-12-08 12:20:13 +0100 |
commit | f7164ae9d4936715cdefc379b73f263a0bf9e712 (patch) | |
tree | 867cfe266762398a4b7eb0536e3ebc54f9c36b90 /src/shared/cplusplus/Control.cpp | |
parent | 2811d0caf3a746b9421abf434d605592a5935270 (diff) | |
download | qt-creator-f7164ae9d4936715cdefc379b73f263a0bf9e712.tar.gz |
Introduced TypenameArgument.
Diffstat (limited to 'src/shared/cplusplus/Control.cpp')
-rw-r--r-- | src/shared/cplusplus/Control.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Control.cpp b/src/shared/cplusplus/Control.cpp index f03384274a..19a9803bae 100644 --- a/src/shared/cplusplus/Control.cpp +++ b/src/shared/cplusplus/Control.cpp @@ -327,6 +327,14 @@ public: return argument; } + TypenameArgument *newTypenameArgument(unsigned sourceLocation, const Name *name) + { + TypenameArgument *argument = new TypenameArgument(translationUnit, + sourceLocation, name); + symbols.push_back(argument); + return argument; + } + Function *newFunction(unsigned sourceLocation, const Name *name) { Function *function = new Function(translationUnit, @@ -641,6 +649,9 @@ NamedType *Control::namedType(const Name *name) Argument *Control::newArgument(unsigned sourceLocation, const Name *name) { return d->newArgument(sourceLocation, name); } +TypenameArgument *Control::newTypenameArgument(unsigned sourceLocation, const Name *name) +{ return d->newTypenameArgument(sourceLocation, name); } + Function *Control::newFunction(unsigned sourceLocation, const Name *name) { return d->newFunction(sourceLocation, name); } |