From 574141a4925af0922e75a14fb6477446c9b3e856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 19 Oct 2019 18:51:36 +0200 Subject: [PATCH] shadowVariable: Add comment --- lib/checkother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 05a0bf099..05955edd4 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -2921,7 +2921,7 @@ void CheckOther::checkShadowVariables() while (functionScope && functionScope->type != Scope::ScopeType::eFunction && functionScope->type != Scope::ScopeType::eLambda) functionScope = functionScope->nestedIn; for (const Variable &var : scope.varlist) { - if (var.nameToken() && var.nameToken()->isExpandedMacro()) + if (var.nameToken() && var.nameToken()->isExpandedMacro()) // #8903 continue; if (functionScope && functionScope->type == Scope::ScopeType::eFunction && functionScope->function) {