fixed omp direcitves processing
This commit is contained in:
@@ -643,17 +643,20 @@ vector<OmpDir> parseOmpDirs(void* stIn, const set<string> &globalPriv, bool forD
|
|||||||
SgStatement* st = (SgStatement*)stIn;
|
SgStatement* st = (SgStatement*)stIn;
|
||||||
vector<OmpDir> resultAll;
|
vector<OmpDir> resultAll;
|
||||||
|
|
||||||
char* lineS = st->comments();
|
const char* lineS = st->comments();
|
||||||
if (!lineS)
|
if (!lineS)
|
||||||
return resultAll;
|
return resultAll;
|
||||||
|
|
||||||
vector<string> split;
|
string comment(lineS);
|
||||||
splitString(lineS, '\n', split);
|
convertToLower(comment);
|
||||||
|
|
||||||
|
vector<string> split;
|
||||||
|
splitString(comment, '\n', split);
|
||||||
|
|
||||||
for (int z = split.size() - 1; z >= 0; z--)
|
for (int z = split.size() - 1; z >= 0; z--)
|
||||||
{
|
{
|
||||||
string line = split[z];
|
string line = split[z];
|
||||||
convertToLower(line);
|
|
||||||
if (line.substr(0, 6) == "!$omp&")
|
if (line.substr(0, 6) == "!$omp&")
|
||||||
{
|
{
|
||||||
if (z - 1 < 0)
|
if (z - 1 < 0)
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define VERSION_SPF "2235"
|
#define VERSION_SPF "2236"
|
||||||
|
|||||||
Reference in New Issue
Block a user