From 58f5b02dc023a9a97f508de64d7bb724588ead57 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Mon, 22 Mar 2010 10:34:23 +0100 Subject: Added deprecated identifier. --- src/shared/cplusplus/Control.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/shared/cplusplus/Control.cpp') 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 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; } -- cgit v1.2.1