CPlusPlus: Add new usage tag "Template"

For use in follow-up patch.

Change-Id: I49c057280be9b09862a89fa385a7396f1b1093bb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2022-11-07 17:39:46 +01:00
parent e0b856f0b0
commit 953000b981
4 changed files with 29 additions and 4 deletions

View File

@@ -274,6 +274,10 @@ public:
}
}
}
for (auto it2 = it; it2 != m_astPath.rend(); ++it2) {
if ((*it2)->asTemplateDeclaration())
return tags |= Usage::Tag::Template;
}
return tags;
}
if (const auto retStmt = (*it)->asReturnStatement()) {