Added `Find Usages' of a Symbol.

This commit is contained in:
Roberto Raggi
2009-10-05 15:17:25 +02:00
parent d38f654d53
commit 73320a43d1
10 changed files with 64 additions and 10 deletions

View File

@@ -755,10 +755,16 @@ QList<int> CppModelManager::references(CPlusPlus::Symbol *symbol,
return m_findReferences->references(LookupContext::canonicalSymbol(symbol), doc, snapshot);
}
void CppModelManager::findReferences(CPlusPlus::Symbol *symbol)
void CppModelManager::findUsages(CPlusPlus::Symbol *symbol)
{
if (symbol->identifier())
m_findReferences->findAll(symbol);
m_findReferences->findUsages(symbol);
}
void CppModelManager::renameUsages(CPlusPlus::Symbol *symbol)
{
if (symbol->identifier())
m_findReferences->renameUsages(symbol);
}
QMap<QString, QString> CppModelManager::buildWorkingCopyList()