fixed DECLARE

This commit is contained in:
ALEXks
2025-01-15 15:23:49 +03:00
parent 15535fad2a
commit 3c924aee73
2 changed files with 21 additions and 1 deletions

View File

@@ -1604,6 +1604,26 @@ static bool runAnalysis(SgProject &project, const int curr_regime, const bool ne
} }
} }
} }
if (curr_regime == EXTRACT_PARALLEL_DIRS)
{
for (int i = n - 1; i >= 0; --i)
{
SgFile* file = &(project.file(i));
SgStatement* st = file->firstStatement();
vector<SgStatement*> declares;
while (st)
{
if (st->variant() == ACC_DECLARE_DIR)
declares.push_back(st);
st = st->lexNext();
}
for (auto& elem : declares)
elem->deleteStmt();
}
}
} }
else if (curr_regime == DEF_USE_STAGE1) else if (curr_regime == DEF_USE_STAGE1)
{ {

View File

@@ -1,3 +1,3 @@
#pragma once #pragma once
#define VERSION_SPF "2381" #define VERSION_SPF "2382"