diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-11-18 17:39:16 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-11-19 11:50:28 +0100 |
commit | 72aa551a9776161f22bb4e0aca10ca83decda44d (patch) | |
tree | d2265bb14c9963b8b6173fe08109725436af864c /src/shared/cplusplus/Control.cpp | |
parent | b5ad5835ea66834fc3ba400f28a38ce23964059b (diff) | |
download | qt-creator-72aa551a9776161f22bb4e0aca10ca83decda44d.tar.gz |
C++: implemented switch decl to def for operators
Task-number: QTCREATORBUG-2313
Reviewed-by: Roberto Raggi
Diffstat (limited to 'src/shared/cplusplus/Control.cpp')
-rw-r--r-- | src/shared/cplusplus/Control.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Control.cpp b/src/shared/cplusplus/Control.cpp index 1b42ead206..4cfd8de636 100644 --- a/src/shared/cplusplus/Control.cpp +++ b/src/shared/cplusplus/Control.cpp @@ -551,6 +551,15 @@ DiagnosticClient *Control::diagnosticClient() const void Control::setDiagnosticClient(DiagnosticClient *diagnosticClient) { d->diagnosticClient = diagnosticClient; } +const OperatorNameId *Control::findOperatorNameId(OperatorNameId::Kind operatorId) const +{ + Table<OperatorNameId>::const_iterator i = d->operatorNameIds.find(operatorId); + if (i == d->operatorNameIds.end()) + return 0; + else + return &*i; +} + const Identifier *Control::findIdentifier(const char *chars, unsigned size) const { return d->identifiers.findLiteral(chars, size); } |