Unused struct member: Fix FPs seen in daca@home results for template structs
This commit is contained in:
parent
572d7eb86c
commit
9d5f672dbc
|
@ -1254,6 +1254,10 @@ void CheckUnusedVar::checkStructMemberUsage()
|
||||||
if (!scope.functionList.empty())
|
if (!scope.functionList.empty())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
// Bail out for template struct, members might be used in non-matching instantiations
|
||||||
|
if (scope.className.find("<") != std::string::npos)
|
||||||
|
continue;
|
||||||
|
|
||||||
// bail out if struct is inherited
|
// bail out if struct is inherited
|
||||||
bool bailout = false;
|
bool bailout = false;
|
||||||
for (const Scope &derivedScope : symbolDatabase->scopeList) {
|
for (const Scope &derivedScope : symbolDatabase->scopeList) {
|
||||||
|
|
Loading…
Reference in New Issue