diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-05-26 13:56:25 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-05-26 13:56:34 +0200 |
commit | dfadb0d076816cc107799d2cae0f31e8b738d13e (patch) | |
tree | fe89b70ba5446f7355e7a4072762dc3fbd0e6c8d /src/shared/cplusplus/Symbol.cpp | |
parent | 49c75444bdd158f3bbc06d94bc18fb6b14e8a027 (diff) | |
download | qt-creator-dfadb0d076816cc107799d2cae0f31e8b738d13e.tar.gz |
Added support for the GCC "unavailable" attribute.
Diffstat (limited to 'src/shared/cplusplus/Symbol.cpp')
-rw-r--r-- | src/shared/cplusplus/Symbol.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/shared/cplusplus/Symbol.cpp b/src/shared/cplusplus/Symbol.cpp index 63672f13c0..1b38da597b 100644 --- a/src/shared/cplusplus/Symbol.cpp +++ b/src/shared/cplusplus/Symbol.cpp @@ -170,7 +170,9 @@ Symbol::Symbol(TranslationUnit *translationUnit, unsigned sourceLocation, const _scope(0), _index(0), _next(0), - _isGenerated(false) + _isGenerated(false), + _isDeprecated(false), + _isUnavailable(false) { setSourceLocation(sourceLocation, translationUnit); setName(name); @@ -206,6 +208,12 @@ bool Symbol::isDeprecated() const void Symbol::setDeprecated(bool isDeprecated) { _isDeprecated = isDeprecated; } +bool Symbol::isUnavailable() const +{ return _isUnavailable; } + +void Symbol::setUnavailable(bool isUnavailable) +{ _isUnavailable = isUnavailable; } + void Symbol::setSourceLocation(unsigned sourceLocation, TranslationUnit *translationUnit) { _sourceLocation = sourceLocation; |