aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/cplusplus/FindUsages.cpp
diff options
context:
space:
mode:
authorLeandro Melo <[email protected]>2012-09-03 13:38:20 +0200
committerLeandro Melo <[email protected]>2012-09-04 10:09:16 +0200
commit903c3cafe83fe8434ad6d18b400b73dd2ef50a99 (patch)
tree746c1bad4e24cab9552f4f04552aa316f2382697 /src/libs/cplusplus/FindUsages.cpp
parent41a7d1c6248f2238a724856c17ebcbfba0614fa6 (diff)
C++: Improve lookup - collect more valid items
There was a fix for QTCREATORBUG-7730 in the case of nested forward declarations in commit 74a458bca09b5bd170b64e04bb68c8d958c61932. However, it introduced regressions and actually didn't solve the issue, since the behavior was hidden by another error fixed later. The patch should properly fix the issue and the regression pointed in QTCREATORBUG-7777. Task-number: QTCREATORBUG-7730 Task-number: QTCREATORBUG-7777 Change-Id: I27397fefdc7cc9a60111761df1f76a01407886f7 Reviewed-by: Christian Kamm <[email protected]> Reviewed-by: Orgad Shaneh <[email protected]>
Diffstat (limited to 'src/libs/cplusplus/FindUsages.cpp')
-rw-r--r--src/libs/cplusplus/FindUsages.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/libs/cplusplus/FindUsages.cpp b/src/libs/cplusplus/FindUsages.cpp
index 3086ca0d0f6..1ae48798d69 100644
--- a/src/libs/cplusplus/FindUsages.cpp
+++ b/src/libs/cplusplus/FindUsages.cpp
@@ -212,35 +212,6 @@ void FindUsages::reportResult(unsigned tokenIndex)
_references.append(tokenIndex);
}
-bool FindUsages::compareFullyQualifiedName(const QList<const Name *> &path, const QList<const Name *> &other)
-{
- if (path.length() != other.length())
- return false;
-
- for (int i = 0; i < path.length(); ++i) {
- if (! compareName(path.at(i), other.at(i)))
- return false;
- }
-
- return true;
-}
-
-bool FindUsages::compareName(const Name *name, const Name *other)
-{
- if (name == other)
- return true;
-
- else if (name && other) {
- const Identifier *id = name->identifier();
- const Identifier *otherId = other->identifier();
-
- if (id == otherId || (id && id->isEqualTo(otherId)))
- return true;
- }
-
- return false;
-}
-
bool FindUsages::isLocalScope(Scope *scope)
{
if (scope) {