fix: syntax check issues for new file not correctly parsed
This commit is contained in:
parent
b4fbcbddb0
commit
3cbd323f97
|
@ -97,7 +97,7 @@ QString Compiler::getFileNameFromOutputLine(QString &line) {
|
||||||
line=line.trimmed();
|
line=line.trimmed();
|
||||||
if (temp.compare("<stdin>", Qt::CaseInsensitive)==0 ) {
|
if (temp.compare("<stdin>", Qt::CaseInsensitive)==0 ) {
|
||||||
temp = mFilename;
|
temp = mFilename;
|
||||||
break;
|
return temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
QFileInfo fileInfo(temp);
|
QFileInfo fileInfo(temp);
|
||||||
|
@ -113,8 +113,11 @@ QString Compiler::getFileNameFromOutputLine(QString &line) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
QFileInfo info(temp);
|
if (!mDirectory.isEmpty()) {
|
||||||
return info.isRelative()?absolutePath(mDirectory,temp):cleanPath(temp);
|
QFileInfo info(temp);
|
||||||
|
return info.isRelative()?absolutePath(mDirectory,temp):cleanPath(temp);
|
||||||
|
}
|
||||||
|
return temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
int Compiler::getLineNumberFromOutputLine(QString &line)
|
int Compiler::getLineNumberFromOutputLine(QString &line)
|
||||||
|
|
Loading…
Reference in New Issue