Compare commits
4 Commits
18cf27ea83
...
297a20b2e6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
297a20b2e6 | ||
|
|
c40afd5ad6 | ||
|
|
80a1fecb1c | ||
|
|
2db6bf4bdf |
Submodule projects/dvm updated: cdda71deab...13d113d343
File diff suppressed because it is too large
Load Diff
@@ -577,10 +577,20 @@ string removeIncludeStatsAndUnparse(SgFile *file, const char *fileName, const ch
|
||||
for (auto& incl : inclByPos.second)
|
||||
inlcude += (renameIncludes ? renameInclude(incl) : incl);
|
||||
|
||||
if (st->comments())
|
||||
st->setComments((inlcude + st->comments()).c_str());
|
||||
//check inserted operators
|
||||
SgStatement* toInsert = st;
|
||||
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
|
||||
st->addComment(inlcude.c_str());
|
||||
toInsert->addComment(inlcude.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
#define VERSION_SPF "2465"
|
||||
#define VERSION_SPF "2467"
|
||||
|
||||
Reference in New Issue
Block a user