diff --git a/src/GraphCall/graph_calls.cpp b/src/GraphCall/graph_calls.cpp index 1109d48..51c8b6a 100644 --- a/src/GraphCall/graph_calls.cpp +++ b/src/GraphCall/graph_calls.cpp @@ -779,6 +779,20 @@ static void checkSpecList(SgExpression *spec, FuncInfo* currF, const map& parNames) +{ + if (ex) + { + if (ex->variant() == ARRAY_REF) + fillIn(currF, ex->lhs(), parNames, false); + else + { + checkInTypeDescription(ex->lhs(), currF, parNames); + checkInTypeDescription(ex->rhs(), currF, parNames); + } + } +} + static void fillInOut(FuncInfo *currF, SgStatement *start, SgStatement *last, const set& activeOps) { if (currF->funcParams.countOfPars == 0) @@ -798,8 +812,13 @@ static void fillInOut(FuncInfo *currF, SgStatement *start, SgStatement *last, co if (st->variant() == ENTRY_STAT) continue; + + if (isSgExecutableStatement(st) == NULL) { + checkInTypeDescription(st->expr(0), currF, parNames); + continue; + } - if (isSgExecutableStatement(st) == NULL || st->lineNumber() <= 0) + if (st->lineNumber() <= 0) continue; if (activeOps.size() && activeOps.find(st) == activeOps.end()) diff --git a/src/Utils/version.h b/src/Utils/version.h index 705d7b2..54fc5bd 100644 --- a/src/Utils/version.h +++ b/src/Utils/version.h @@ -1,3 +1,3 @@ #pragma once -#define VERSION_SPF "2434" +#define VERSION_SPF "2435"