- fix: Variables defined by using alias can't show completion info.

This commit is contained in:
Roy Qu 2024-06-02 17:53:31 +08:00
parent b05f659860
commit c83da8309c
2 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,7 @@ Red Panda C++ Version 3.1
- 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: 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

View File

@ -5937,7 +5937,8 @@ PStatement CppParser::doParseEvalTypeInfo(
PStatement effectiveTypeStatement = typeStatement;
int level=0;
while (effectiveTypeStatement && (effectiveTypeStatement->kind == StatementKind::Typedef
|| effectiveTypeStatement->kind == StatementKind::Preprocessor)) {
|| effectiveTypeStatement->kind == StatementKind::Alias
|| effectiveTypeStatement->kind == StatementKind::Preprocessor)) {
if (level >20) // prevent infinite loop
break;
level++;