forked from qt-creator/qt-creator
CPlusPlus: Properly categorize usages in if statements
Change-Id: I5f6e5fa14ea51cd9e61a9e2e96c110ca618be429 Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
@@ -334,6 +334,8 @@ Usage::Type FindUsages::getType(int line, int column, int tokenIndex)
|
||||
return Usage::Type::Read;
|
||||
if ((*it)->asCaseStatement())
|
||||
return Usage::Type::Read;
|
||||
if ((*it)->asIfStatement())
|
||||
return Usage::Type::Read;
|
||||
if ((*it)->asLambdaCapture() || (*it)->asNamedTypeSpecifier()
|
||||
|| (*it)->asElaboratedTypeSpecifier()) {
|
||||
return Usage::Type::Other;
|
||||
|
||||
Reference in New Issue
Block a user