summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/Control.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2010-03-22 10:34:23 +0100
committerErik Verbruggen <erik.verbruggen@nokia.com>2010-03-23 14:15:44 +0100
commit58f5b02dc023a9a97f508de64d7bb724588ead57 (patch)
treede36742301cf44c631bf0235eef54f825f9a3489 /src/shared/cplusplus/Control.cpp
parent189ec382ef088e8298f1dcd13aa4962865db071e (diff)
downloadqt-creator-58f5b02dc023a9a97f508de64d7bb724588ead57.tar.gz
Added deprecated identifier.
Diffstat (limited to 'src/shared/cplusplus/Control.cpp')
-rw-r--r--src/shared/cplusplus/Control.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Control.cpp b/src/shared/cplusplus/Control.cpp
index cbe80074fe..20f622a127 100644
--- a/src/shared/cplusplus/Control.cpp
+++ b/src/shared/cplusplus/Control.cpp
@@ -507,6 +507,7 @@ public:
// symbols
std::vector<Symbol *> symbols;
+ const Identifier *deprecatedId;
// ObjC context keywords:
const Identifier *objcGetterId;
const Identifier *objcSetterId;
@@ -522,6 +523,8 @@ Control::Control()
{
d = new Data(this);
+ d->deprecatedId = findOrInsertIdentifier("deprecated");
+
d->objcGetterId = findOrInsertIdentifier("getter");
d->objcSetterId = findOrInsertIdentifier("setter");
d->objcReadwriteId = findOrInsertIdentifier("readwrite");
@@ -719,6 +722,9 @@ ObjCMethod *Control::newObjCMethod(unsigned sourceLocation, const Name *name)
ObjCPropertyDeclaration *Control::newObjCPropertyDeclaration(unsigned sourceLocation, const Name *name)
{ return d->newObjCPropertyDeclaration(sourceLocation, name); }
+const Identifier *Control::deprecatedId() const
+{ return d->deprecatedId; }
+
const Identifier *Control::objcGetterId() const
{ return d->objcGetterId; }