- fix: can't jump to definition/declaration for symbols in using alias statement like "using ::printf".

This commit is contained in:
Roy Qu 2024-04-06 10:08:42 +08:00
parent 0db67a2688
commit 2cf8f2dcf5
3 changed files with 4 additions and 1 deletions

View File

@ -122,6 +122,7 @@ Red Panda C++ Version 2.27
- fix: Project options -> file doesn't work.
- fix: Don't show function prototype tip for function name that contains more than one namespace;
- fix: Compiler set options "Check for stack smashing attacks (-fstack-protector)" was not correctly applied when compiling.
- fix: can't jump to definition/declaration for symbols in using alias statement like "using ::printf".
Red Panda C++ Version 2.26
- enhancement: Code suggestion for embedded std::vectors.

View File

@ -2423,6 +2423,8 @@ QStringList Editor::getExpressionAtPosition(
}
for (int i=tokens.count()-1;i>=0;i--) {
QString token = tokens[i];
if (token=="using")
return result;
switch(lastSymbolType) {
case LastSymbolType::ScopeResolutionOperator: //before '::'
if (token==">") {

View File

@ -16,7 +16,7 @@
*/
#include "qsynedit.h"
#include "document.h"
#include "syntaxer/syntaxer.h""
#include "syntaxer/syntaxer.h"
#include <QApplication>
#include <QFontMetrics>
#include <algorithm>