aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/cplusplus/FindUsages.cpp
diff options
context:
space:
mode:
authorPrzemyslaw Gorszkowski <[email protected]>2013-01-19 13:17:34 +0100
committerNikolai Kosjar <[email protected]>2013-01-22 11:35:25 +0100
commit23844410fdc100342860e400a62e86c408ac4605 (patch)
tree8f9eb0d32a53cd6465b7ec76a206a37798d34b50 /src/libs/cplusplus/FindUsages.cpp
parentbc137f36a76e6a4f6878ab86cc778fcb41d6a826 (diff)
C++ editor: support nested class of enclosing template
Fixing: * highlighting * tooltips * find usage * selecting Task-number: QTCREATORBUG-8245 Change-Id: I6e900799e43126706125b7e424567fca2b2c223e Reviewed-by: Nikolai Kosjar <[email protected]>
Diffstat (limited to 'src/libs/cplusplus/FindUsages.cpp')
-rw-r--r--src/libs/cplusplus/FindUsages.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/cplusplus/FindUsages.cpp b/src/libs/cplusplus/FindUsages.cpp
index e83d7d220f0..365073cb27d 100644
--- a/src/libs/cplusplus/FindUsages.cpp
+++ b/src/libs/cplusplus/FindUsages.cpp
@@ -260,6 +260,8 @@ void FindUsages::checkExpression(unsigned startToken, unsigned endToken, Scope *
if (! scope)
scope = _currentScope;
+ // make possible to instantiate templates
+ typeofExpression.setExpandTemplates(true);
const QList<LookupItem> results = typeofExpression(expression, scope, TypeOfExpression::Preprocess);
reportResult(endToken, results);
}