Commit b4a121a9 authored by Nikolai Kosjar's avatar Nikolai Kosjar

CppTools: Ignore generated symbols in SearchSymbols

...e.g. qt_metacall() etc from the Q_OBJECT macro.

This affects the results of the cpp locator and find filters.

Change-Id: I2f9ff1210f3705baddadd486d700ee8be9a44a20
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent 86f9a2b7
......@@ -292,7 +292,7 @@ void SearchSymbols::appendItem(const QString &symbolName, const QString &symbolT
const QString &symbolScope, ModelItemInfo::ItemType itemType,
Symbol *symbol)
{
if (!symbol->name())
if (!symbol->name() || symbol->isGenerated())
return;
QString path = m_paths.value(symbol->fileId(), QString());
......
// Copyright header
#define GENERATE_FUNC void myFunctionGenerated() {}
//
// Symbols in a global namespace
//
GENERATE_FUNC
int myVariable;
int myFunction(bool yesno, int number) {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment