- fix: can't jump to definition/declaration for symbols in using alias statement like "using ::printf".
This commit is contained in:
parent
0db67a2688
commit
2cf8f2dcf5
1
NEWS.md
1
NEWS.md
|
@ -122,6 +122,7 @@ Red Panda C++ Version 2.27
|
||||||
- fix: Project options -> file doesn't work.
|
- fix: Project options -> file doesn't work.
|
||||||
- fix: Don't show function prototype tip for function name that contains more than one namespace;
|
- 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: 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
|
Red Panda C++ Version 2.26
|
||||||
- enhancement: Code suggestion for embedded std::vectors.
|
- enhancement: Code suggestion for embedded std::vectors.
|
||||||
|
|
|
@ -2423,6 +2423,8 @@ QStringList Editor::getExpressionAtPosition(
|
||||||
}
|
}
|
||||||
for (int i=tokens.count()-1;i>=0;i--) {
|
for (int i=tokens.count()-1;i>=0;i--) {
|
||||||
QString token = tokens[i];
|
QString token = tokens[i];
|
||||||
|
if (token=="using")
|
||||||
|
return result;
|
||||||
switch(lastSymbolType) {
|
switch(lastSymbolType) {
|
||||||
case LastSymbolType::ScopeResolutionOperator: //before '::'
|
case LastSymbolType::ScopeResolutionOperator: //before '::'
|
||||||
if (token==">") {
|
if (token==">") {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*/
|
*/
|
||||||
#include "qsynedit.h"
|
#include "qsynedit.h"
|
||||||
#include "document.h"
|
#include "document.h"
|
||||||
#include "syntaxer/syntaxer.h""
|
#include "syntaxer/syntaxer.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QFontMetrics>
|
#include <QFontMetrics>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
Loading…
Reference in New Issue