Commit 1b97b5e4 authored by Christian Stenger's avatar Christian Stenger
Browse files

Fix data tag support for split header and source

If data functions where defined inside the source file when having
source and header split they were simply ignored.

Change-Id: I6d32d3c721f656797a78d3ea740c102d6b93ec88
Reviewed-by: default avatarNiels Weber <>
Reviewed-by: default avatarDavid Schulz <>
parent fa9912f3
......@@ -480,8 +480,12 @@ void TestCodeParser::checkDocumentForTestCode(CPlusPlus::Document::Ptr document)
const QMap<QString, TestCodeLocationAndType> testFunctions = visitor.privateSlots();
const QMap<QString, TestCodeLocationList> dataTags =
QMap<QString, TestCodeLocationList> dataTags =
checkForDataTags(declaringDoc->fileName(), testFunctions);
if (declaringDoc->fileName() != document->fileName())
dataTags.unite(checkForDataTags(document->fileName(), testFunctions));
TestTreeItem *item = constructTestTreeItem(declaringDoc->fileName(), QString(),
testCaseName, line, column, testFunctions,
Supports Markdown
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