- enhancement: Syntax check for assembly files.
Don't show debug tips in cpu info dialog
This commit is contained in:
parent
c9bb03350d
commit
a768d74116
1
NEWS.md
1
NEWS.md
|
@ -13,6 +13,7 @@ Red Panda C++ Version 2.15
|
||||||
- fix: Search/replace with regex is not correctly handled.
|
- fix: Search/replace with regex is not correctly handled.
|
||||||
- enhancement: Show descriptions mouse tip for assebmly instructions. (editor / cpu info dialog)
|
- enhancement: Show descriptions mouse tip for assebmly instructions. (editor / cpu info dialog)
|
||||||
- fix: When completing resigter names, an extra '%' is wrongly added.
|
- fix: When completing resigter names, an extra '%' is wrongly added.
|
||||||
|
- enhancement: Syntax check for assembly files.
|
||||||
|
|
||||||
Red Panda C++ Version 2.14
|
Red Panda C++ Version 2.14
|
||||||
|
|
||||||
|
|
|
@ -98,6 +98,9 @@ QString Compiler::getFileNameFromOutputLine(QString &line) {
|
||||||
if (temp.compare("<stdin>", Qt::CaseInsensitive)==0 ) {
|
if (temp.compare("<stdin>", Qt::CaseInsensitive)==0 ) {
|
||||||
temp = mFilename;
|
temp = mFilename;
|
||||||
return temp;
|
return temp;
|
||||||
|
} else if (temp.compare("{standard input}", Qt::CaseInsensitive)==0 ) {
|
||||||
|
temp = mFilename;
|
||||||
|
return temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
QFileInfo fileInfo(temp);
|
QFileInfo fileInfo(temp);
|
||||||
|
|
|
@ -54,6 +54,14 @@ bool StdinCompiler::prepareForCompile()
|
||||||
strFileType = "C";
|
strFileType = "C";
|
||||||
mCompiler = compilerSet()->CCompiler();
|
mCompiler = compilerSet()->CCompiler();
|
||||||
break;
|
break;
|
||||||
|
case FileType::GAS:
|
||||||
|
mArguments += " -x assembler - ";
|
||||||
|
mArguments += getCCompileArguments(mOnlyCheckSyntax);
|
||||||
|
mArguments += getCIncludeArguments();
|
||||||
|
mArguments += getProjectIncludeArguments();
|
||||||
|
strFileType = "GAS";
|
||||||
|
mCompiler = compilerSet()->CCompiler();
|
||||||
|
break;
|
||||||
case FileType::CppSource:
|
case FileType::CppSource:
|
||||||
case FileType::CppHeader:
|
case FileType::CppHeader:
|
||||||
case FileType::CHeader:
|
case FileType::CHeader:
|
||||||
|
|
|
@ -1903,7 +1903,8 @@ void Editor::onTooltipTimer()
|
||||||
break;
|
break;
|
||||||
case TipType::Identifier:
|
case TipType::Identifier:
|
||||||
if (pMainWindow->debugger()->executing() && !pMainWindow->debugger()->inferiorRunning())
|
if (pMainWindow->debugger()->executing() && !pMainWindow->debugger()->inferiorRunning())
|
||||||
s = getWordAtPosition(this,p, pBeginPos,pEndPos, WordPurpose::wpEvaluation); // debugging
|
if (mParentPageControl)
|
||||||
|
s = getWordAtPosition(this,p, pBeginPos,pEndPos, WordPurpose::wpEvaluation); // debugging
|
||||||
else if (!mCompletionPopup->isVisible()
|
else if (!mCompletionPopup->isVisible()
|
||||||
&& !mHeaderCompletionPopup->isVisible()) {
|
&& !mHeaderCompletionPopup->isVisible()) {
|
||||||
expression = getExpressionAtPosition(p);
|
expression = getExpressionAtPosition(p);
|
||||||
|
@ -4901,7 +4902,8 @@ void Editor::checkSyntaxInBack()
|
||||||
return;
|
return;
|
||||||
if (!syntaxer())
|
if (!syntaxer())
|
||||||
return;
|
return;
|
||||||
if (syntaxer()->language()!=QSynedit::ProgrammingLanguage::CPP)
|
if (syntaxer()->language()!=QSynedit::ProgrammingLanguage::CPP
|
||||||
|
&& syntaxer()->language()!=QSynedit::ProgrammingLanguage::ATTAssembly)
|
||||||
return;
|
return;
|
||||||
pMainWindow->checkSyntaxInBack(this);
|
pMainWindow->checkSyntaxInBack(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1873,14 +1873,14 @@ void MainWindow::checkSyntaxInBack(Editor *e)
|
||||||
if (!pSettings->editor().syntaxCheck()) {
|
if (!pSettings->editor().syntaxCheck()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// if not devEditor.AutoCheckSyntax then
|
|
||||||
// Exit;
|
|
||||||
//not c or cpp file
|
//not c or cpp file
|
||||||
FileType fileType = getFileType(e->filename());
|
FileType fileType = getFileType(e->filename());
|
||||||
if (fileType != FileType::CSource
|
if (fileType != FileType::CSource
|
||||||
&& fileType != FileType::CppSource
|
&& fileType != FileType::CppSource
|
||||||
&& fileType != FileType::CHeader
|
&& fileType != FileType::CHeader
|
||||||
&& fileType != FileType::CppHeader
|
&& fileType != FileType::CppHeader
|
||||||
|
&& fileType != FileType::GAS
|
||||||
)
|
)
|
||||||
return;
|
return;
|
||||||
if (mCompilerManager->backgroundSyntaxChecking())
|
if (mCompilerManager->backgroundSyntaxChecking())
|
||||||
|
|
Loading…
Reference in New Issue