From 79b655255f5f552edb337a52ba7b801cbaff9c18 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 6 Aug 2015 16:43:37 +0300 Subject: Fix false positives with references. --- src/analysis/expression.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/analysis/expression.cpp b/src/analysis/expression.cpp index 70e25a3..f14bc2d 100644 --- a/src/analysis/expression.cpp +++ b/src/analysis/expression.cpp @@ -163,20 +163,9 @@ VarItem getComponentRefVariable(Node *node) Node *ref = skipNop(indirect->ref); if (ref && !isValidVar(ref->label)) return str; - if (ref == PARM_DECL) - { - ParmDeclNode *decl = static_cast(ref); - if (skipNop(decl->declType) != nullptr && - skipNop(decl->declType) != POINTER_TYPE) - { - return str; - } - } if (ref == VAR_DECL) { VarDeclNode *varDecl = static_cast(ref); - if (varDecl->varType != POINTER_TYPE) - return str; if (findTreeListPurpose(static_cast( skipNop(varDecl->attribute)), "nonnullpointer")) -- cgit v1.2.3-60-g2f50