1 Commits

Author SHA1 Message Date
fc98972bc2 fix algorythm 2026-02-21 02:34:57 +03:00
3 changed files with 5 additions and 15 deletions

View File

@@ -577,20 +577,10 @@ string removeIncludeStatsAndUnparse(SgFile *file, const char *fileName, const ch
for (auto& incl : inclByPos.second)
inlcude += (renameIncludes ? renameInclude(incl) : incl);
//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());
if (st->comments())
st->setComments((inlcude + st->comments()).c_str());
else
toInsert->addComment(inlcude.c_str());
st->addComment(inlcude.c_str());
}
}

View File

@@ -1,3 +1,3 @@
#pragma once
#define VERSION_SPF "2467"
#define VERSION_SPF "2465"