diff options
| author | Przemyslaw Gorszkowski <[email protected]> | 2013-04-25 18:46:34 +0200 |
|---|---|---|
| committer | Erik Verbruggen <[email protected]> | 2013-05-02 15:17:27 +0200 |
| commit | d14767a6afd949b0a1f5294c24482a4a00fd249f (patch) | |
| tree | 8f89bc6b5a60b36dded8848d96b327479e6cf99d /src/libs/cplusplus/FindUsages.cpp | |
| parent | e245f2d5f9e3a02a4b6a0cc0ab17f654fa5f0118 (diff) | |
C++: fix highlighting type when there is using Namespace::Class
If type is not found we try to find 'using' declaration for this type.
Task-number: QTCREATORBUG-7903
Change-Id: I569db9e1a8504a5da3115ebbed2e823d5924f6ca
Reviewed-by: Erik Verbruggen <[email protected]>
Diffstat (limited to 'src/libs/cplusplus/FindUsages.cpp')
| -rw-r--r-- | src/libs/cplusplus/FindUsages.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/cplusplus/FindUsages.cpp b/src/libs/cplusplus/FindUsages.cpp index 2d4d5c5fc8c..07a912b8faf 100644 --- a/src/libs/cplusplus/FindUsages.cpp +++ b/src/libs/cplusplus/FindUsages.cpp @@ -210,7 +210,7 @@ bool FindUsages::checkCandidates(const QList<LookupItem> &candidates) const if (s->enclosingScope()->isTemplate()) { if (s->enclosingScope()->enclosingScope() != _declSymbol->enclosingScope()) return false; - } else if (s->enclosingScope() != _declSymbol->enclosingScope()) { + } else if (! s->isUsingDeclaration() && s->enclosingScope() != _declSymbol->enclosingScope()) { return false; } } |
