- fix: order for parameters generated by auto link may not correct
This commit is contained in:
parent
49297431b6
commit
b0c8526d97
1
NEWS.md
1
NEWS.md
|
@ -3,6 +3,7 @@ Red Panda C++ Version 1.0.1
|
||||||
- fix: hide function tip when scroll
|
- fix: hide function tip when scroll
|
||||||
- fix: short cut for goto definition/declaration doesn't work
|
- fix: short cut for goto definition/declaration doesn't work
|
||||||
- enhancement: press alt to switch to column selection mode while selection by mouse dragging in editor
|
- enhancement: press alt to switch to column selection mode while selection by mouse dragging in editor
|
||||||
|
- fix: order for parameters generated by auto link may not correct
|
||||||
|
|
||||||
Red Panda C++ Version 1.0.0
|
Red Panda C++ Version 1.0.0
|
||||||
- fix: calculation for code snippets's tab stop positions is not correct
|
- fix: calculation for code snippets's tab stop positions is not correct
|
||||||
|
|
|
@ -3803,8 +3803,6 @@ void Editor::gotoDeclaration(const BufferCoord &pos)
|
||||||
// Exit early, don't bother creating a stream (which is slow)
|
// Exit early, don't bother creating a stream (which is slow)
|
||||||
QStringList expression = getExpressionAtPosition(pos);
|
QStringList expression = getExpressionAtPosition(pos);
|
||||||
|
|
||||||
qDebug()<<expression;
|
|
||||||
|
|
||||||
// Find it's definition
|
// Find it's definition
|
||||||
PStatement statement = parser()->findStatementOf(
|
PStatement statement = parser()->findStatementOf(
|
||||||
filename(),
|
filename(),
|
||||||
|
|
|
@ -428,10 +428,9 @@ void CppPreprocessor::handleInclude(const QString &line, bool fromNext)
|
||||||
if (fileName.isEmpty())
|
if (fileName.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//mCurrentIncludes->includeFiles.insert(fileName,true);
|
PFileIncludes oldCurrentIncludes = mCurrentIncludes;
|
||||||
// And open a new entry
|
|
||||||
openInclude(fileName);
|
openInclude(fileName);
|
||||||
mCurrentIncludes->includeFiles.insert(fileName,true);
|
oldCurrentIncludes->includeFiles.insert(fileName,true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CppPreprocessor::handlePreprocessor(const QString &value)
|
void CppPreprocessor::handlePreprocessor(const QString &value)
|
||||||
|
@ -705,8 +704,11 @@ void CppPreprocessor::openInclude(const QString &fileName, QStringList bufferedT
|
||||||
addDefinesInFile(fileName);
|
addDefinesInFile(fileName);
|
||||||
PFileIncludes fileIncludes = getFileIncludesEntry(fileName);
|
PFileIncludes fileIncludes = getFileIncludesEntry(fileName);
|
||||||
for (PParsedFile& file:mIncludes) {
|
for (PParsedFile& file:mIncludes) {
|
||||||
file->fileIncludes->includeFiles =
|
foreach (const QString& incFile,fileIncludes->includeFiles.keys()) {
|
||||||
file->fileIncludes->includeFiles.unite(fileIncludes->includeFiles);
|
file->fileIncludes->includeFiles.insert(incFile,false);
|
||||||
|
}
|
||||||
|
// file->fileIncludes->includeFiles =
|
||||||
|
// file->fileIncludes->includeFiles.unite(fileIncludes->includeFiles);
|
||||||
// file->fileIncludes->includeFiles.insert(fileIncludes->includeFiles);
|
// file->fileIncludes->includeFiles.insert(fileIncludes->includeFiles);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
#include <turtle.h>
|
#include <turtle.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
int n;
|
int n;
|
||||||
initWorld(800,600);
|
initWorld(800,600);
|
||||||
setSpeed(1000);
|
setSpeed(1000);
|
||||||
//setImmediate(1);
|
//setImmediate(1);
|
||||||
|
//init_console();
|
||||||
|
//show_console();
|
||||||
|
//printf("test output\n");
|
||||||
|
|
||||||
n=50;
|
n=50;
|
||||||
for (int i=0;i<n;i++) {
|
for (int i=0;i<n;i++) {
|
||||||
|
|
Loading…
Reference in New Issue