CppLocatorFilter: Add cppCurrentDocumentMatcher()

Add also a test for it.

Change-Id: I324b1a2cbe89c0a1258dde93524689cb85e06737
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Jarek Kobus
2023-04-11 16:03:41 +02:00
parent 0b5db8e558
commit 64f946445c
6 changed files with 178 additions and 6 deletions

View File

@@ -903,6 +903,8 @@ void CppModelManager::initCppTools()
[] { return QList{CppEditor::cppClassMatcher()}; });
LocatorMatcher::addMatcherCreator(MatcherType::Functions,
[] { return QList{CppEditor::cppFunctionMatcher()}; });
LocatorMatcher::addMatcherCreator(MatcherType::CurrentDocumentSymbols,
[] { return QList{CppEditor::cppCurrentDocumentMatcher()}; });
}
CppModelManager::CppModelManager()