- fix: Variables defined by using alias can't show completion info.
This commit is contained in:
parent
b05f659860
commit
c83da8309c
1
NEWS.md
1
NEWS.md
|
@ -14,6 +14,7 @@ Red Panda C++ Version 3.1
|
||||||
- enhancement: More elements in the demo of editor color theme optiont page.
|
- enhancement: More elements in the demo of editor color theme optiont page.
|
||||||
- fix: Mingw32-make doesn't work correctly if there are bash in the path.
|
- fix: Mingw32-make doesn't work correctly if there are bash in the path.
|
||||||
- fix: All color scheme names are incorrectly displayed as bold, if the current one is a customed one.
|
- fix: All color scheme names are incorrectly displayed as bold, if the current one is a customed one.
|
||||||
|
- fix: Variables defined by using alias can't show completion info.
|
||||||
|
|
||||||
Red Panda C++ Version 3.0
|
Red Panda C++ Version 3.0
|
||||||
|
|
||||||
|
|
|
@ -5937,7 +5937,8 @@ PStatement CppParser::doParseEvalTypeInfo(
|
||||||
PStatement effectiveTypeStatement = typeStatement;
|
PStatement effectiveTypeStatement = typeStatement;
|
||||||
int level=0;
|
int level=0;
|
||||||
while (effectiveTypeStatement && (effectiveTypeStatement->kind == StatementKind::Typedef
|
while (effectiveTypeStatement && (effectiveTypeStatement->kind == StatementKind::Typedef
|
||||||
|| effectiveTypeStatement->kind == StatementKind::Preprocessor)) {
|
|| effectiveTypeStatement->kind == StatementKind::Alias
|
||||||
|
|| effectiveTypeStatement->kind == StatementKind::Preprocessor)) {
|
||||||
if (level >20) // prevent infinite loop
|
if (level >20) // prevent infinite loop
|
||||||
break;
|
break;
|
||||||
level++;
|
level++;
|
||||||
|
|
Loading…
Reference in New Issue