diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-05-26 13:49:06 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-05-26 13:49:06 +0200 |
commit | 51fbf9695ccb07e853c04ac77d31926ada2afaa2 (patch) | |
tree | 18be1e094a77338fa6dd4054a1d060530b49df93 /src/shared/cplusplus/Control.cpp | |
parent | 9e89f36cd93633c02f7767a589921bc7c4da8e23 (diff) | |
download | qt-creator-51fbf9695ccb07e853c04ac77d31926ada2afaa2.tar.gz |
Added support for the GCC "unavailable" attribute.
Diffstat (limited to 'src/shared/cplusplus/Control.cpp')
-rw-r--r-- | src/shared/cplusplus/Control.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Control.cpp b/src/shared/cplusplus/Control.cpp index a456bcc209..14c07a0f25 100644 --- a/src/shared/cplusplus/Control.cpp +++ b/src/shared/cplusplus/Control.cpp @@ -516,6 +516,7 @@ public: std::vector<Symbol *> symbols; const Identifier *deprecatedId; + const Identifier *unavailableId; // ObjC context keywords: const Identifier *objcGetterId; const Identifier *objcSetterId; @@ -532,6 +533,7 @@ Control::Control() d = new Data(this); d->deprecatedId = findOrInsertIdentifier("deprecated"); + d->unavailableId = findOrInsertIdentifier("unavailable"); d->objcGetterId = findOrInsertIdentifier("getter"); d->objcSetterId = findOrInsertIdentifier("setter"); @@ -736,6 +738,9 @@ ObjCPropertyDeclaration *Control::newObjCPropertyDeclaration(unsigned sourceLoca const Identifier *Control::deprecatedId() const { return d->deprecatedId; } +const Identifier *Control::unavailableId() const +{ return d->unavailableId; } + const Identifier *Control::objcGetterId() const { return d->objcGetterId; } |