IntentInadded -> IntentInParams
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <set>
|
||||
#include <iostream>
|
||||
|
||||
#include "../Utils/SgUtils.h"
|
||||
#include "../Utils/utils.h"
|
||||
@@ -39,7 +38,7 @@ static SgType* createArrayCharType(int len, int dim)
|
||||
}
|
||||
|
||||
static void findDecls(SgExpression* ex, vector<SgExpression*>& local, const map<string, SgStatement*>& localParams,
|
||||
set<string>& added, std::set<std::string>& IntentInadded)
|
||||
set<string>& added, set<string>& IntentInParams)
|
||||
{
|
||||
if (ex)
|
||||
{
|
||||
@@ -68,8 +67,8 @@ static void findDecls(SgExpression* ex, vector<SgExpression*>& local, const map<
|
||||
}
|
||||
}
|
||||
|
||||
findDecls(ex->lhs(), local, localParams, added, IntentInadded);
|
||||
findDecls(ex->rhs(), local, localParams, added, IntentInadded);
|
||||
findDecls(ex->lhs(), local, localParams, added, IntentInParams);
|
||||
findDecls(ex->rhs(), local, localParams, added, IntentInParams);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,10 +90,10 @@ static void findLocalData(SgStatement* func, SgStatement* end, vector<SgExpressi
|
||||
SgStatement* start = func->lexNext();
|
||||
|
||||
FuncInfo* funcI = findFileInfoByName(func, allFuncInfo);
|
||||
std::set<std::string> IntentInadded;
|
||||
set<string> IntentInParams;
|
||||
for (int i = 0; i < funcI->funcParams.countOfPars; ++i)
|
||||
if (funcI->funcParams.isArgIn(i) && !funcI->funcParams.isArgOut(i))
|
||||
IntentInadded.insert(funcI->funcParams.identificators[i]);
|
||||
IntentInParams.insert(funcI->funcParams.identificators[i]);
|
||||
|
||||
for (SgStatement* st = start; st != end; st = st->lexNext())
|
||||
{
|
||||
@@ -115,7 +114,7 @@ static void findLocalData(SgStatement* func, SgStatement* end, vector<SgExpressi
|
||||
{
|
||||
//printf("line %d %s Var %s\n", st->lineNumber(), st->fileName(), tag[st->variant()]);
|
||||
if (st->variant() == VAR_DECL || st->variant() == VAR_DECL_90)
|
||||
findDecls(st->expr(0), local, localParams, added, IntentInadded);
|
||||
findDecls(st->expr(0), local, localParams, added, IntentInParams);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user