Skip to content
Snippets Groups Projects
Commit f87236de authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Look at the symbol's visibility.

parent ceb7cc13
No related branches found
No related tags found
No related merge requests found
...@@ -185,7 +185,8 @@ static void find_helper(QFutureInterface<Usage> &future, ...@@ -185,7 +185,8 @@ static void find_helper(QFutureInterface<Usage> &future,
const QString sourceFile = QString::fromUtf8(symbol->fileName(), symbol->fileNameLength()); const QString sourceFile = QString::fromUtf8(symbol->fileName(), symbol->fileNameLength());
QStringList files(sourceFile); QStringList files(sourceFile);
if (symbol->isClass() || symbol->isForwardClassDeclaration() || (symbol->scope() && symbol->scope()->isNamespaceScope())) { if (symbol->isClass() || symbol->isForwardClassDeclaration() || (symbol->scope() && ! symbol->isStatic() &&
symbol->scope()->isNamespaceScope())) {
foreach (const Document::Ptr &doc, context.snapshot()) { foreach (const Document::Ptr &doc, context.snapshot()) {
if (doc->fileName() == sourceFile) if (doc->fileName() == sourceFile)
continue; continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment