summaryrefslogtreecommitdiff
path: root/src/libs/cplusplus/LookupContext.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2010-08-11 12:47:28 +0200
committerRoberto Raggi <roberto.raggi@nokia.com>2010-08-11 15:25:19 +0200
commit6618a3cd679bf76f8325ca38b934545b0d8f4c60 (patch)
tree5b65ddf83d6181af4f4d9ca19ce8907ab6207e5f /src/libs/cplusplus/LookupContext.cpp
parent354b9712e4655040930a9f18de4e6b4c71dc42d9 (diff)
downloadqt-creator-6618a3cd679bf76f8325ca38b934545b0d8f4c60.tar.gz
Removed TemplateParameters.
Diffstat (limited to 'src/libs/cplusplus/LookupContext.cpp')
-rw-r--r--src/libs/cplusplus/LookupContext.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libs/cplusplus/LookupContext.cpp b/src/libs/cplusplus/LookupContext.cpp
index e56ffcbc07..91f1888ac4 100644
--- a/src/libs/cplusplus/LookupContext.cpp
+++ b/src/libs/cplusplus/LookupContext.cpp
@@ -283,8 +283,11 @@ QList<LookupItem> LookupContext::lookup(const Name *name, Scope *scope) const
} else if (Function *fun = scope->asFunction()) {
bindings()->lookupInScope(name, fun, &candidates, /*templateId = */ 0, /*binding=*/ 0);
+#warning robe: lookup in template parameters
+#if 0
for (TemplateParameters *it = fun->templateParameters(); it && candidates.isEmpty(); it = it->previous())
bindings()->lookupInScope(name, it->scope(), &candidates, /* templateId = */ 0, /*binding=*/ 0);
+#endif
if (! candidates.isEmpty())
break; // it's an argument or a template parameter.
@@ -307,8 +310,11 @@ QList<LookupItem> LookupContext::lookup(const Name *name, Scope *scope) const
break; // it's a formal argument.
} else if (Class *klass = scope->asClass()) {
+#warning robe: lookup in template parameters
+#if 0
for (TemplateParameters *it = klass->templateParameters(); it && candidates.isEmpty(); it = it->previous())
bindings()->lookupInScope(name, it->scope(), &candidates, /* templateId = */ 0, /*binding=*/ 0);
+#endif
if (! candidates.isEmpty())
break; // it's an argument or a template parameter.