Compare commits
1 Commits
42044b60f1
...
fc98972bc2
| Author | SHA1 | Date | |
|---|---|---|---|
| fc98972bc2 |
Submodule projects/dvm updated: 13d113d343...cdda71deab
@@ -577,20 +577,10 @@ string removeIncludeStatsAndUnparse(SgFile *file, const char *fileName, const ch
|
|||||||
for (auto& incl : inclByPos.second)
|
for (auto& incl : inclByPos.second)
|
||||||
inlcude += (renameIncludes ? renameInclude(incl) : incl);
|
inlcude += (renameIncludes ? renameInclude(incl) : incl);
|
||||||
|
|
||||||
//check inserted operators
|
if (st->comments())
|
||||||
SgStatement* toInsert = st;
|
st->setComments((inlcude + st->comments()).c_str());
|
||||||
do {
|
|
||||||
auto lexPrev = toInsert->lexPrev();
|
|
||||||
if (lexPrev && lexPrev->variant() > 0 && lexPrev->lineNumber() < 0)
|
|
||||||
toInsert = lexPrev;
|
|
||||||
else
|
|
||||||
break;
|
|
||||||
} while (true);
|
|
||||||
|
|
||||||
if (toInsert->comments())
|
|
||||||
toInsert->setComments((inlcude + toInsert->comments()).c_str());
|
|
||||||
else
|
else
|
||||||
toInsert->addComment(inlcude.c_str());
|
st->addComment(inlcude.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define VERSION_SPF "2467"
|
#define VERSION_SPF "2465"
|
||||||
|
|||||||
Reference in New Issue
Block a user