- fix: Can't show function tips for std::ios::sync_with_stdio.

This commit is contained in:
Roy Qu 2024-02-29 09:50:20 +08:00
parent bbb3071d44
commit 6daddd1e5b
2 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,7 @@ Red Panda C++ Version 2.27
- fix: (Hopefully) properly escape filenames and arguments in makefile generation.
- enhancement: Beautify display for spaces and linebreaks.
- fix: Insert line after comments may auto add an extra '*'.
- fix: Can't show function tips for std::ios::sync_with_stdio
Red Panda C++ Version 2.26
- enhancement: Code suggestion for embedded std::vectors.

View File

@ -359,6 +359,7 @@ PStatement CppParser::doFindStatementOf(const QString &fileName,
if (!statement)
return PStatement();
// found in namespace
parentScopeType = statement->parentScope.lock();
} else if ((phrase.length()>2) &&
(phrase[0]==':') && (phrase[1]==':')) {
//global
@ -367,6 +368,7 @@ PStatement CppParser::doFindStatementOf(const QString &fileName,
statement= findMemberOfStatement(nextScopeWord,PStatement());
if (!statement)
return PStatement();
parentScopeType = currentScope;
} else {
//unqualified name
parentScopeType = currentScope;
@ -375,7 +377,6 @@ PStatement CppParser::doFindStatementOf(const QString &fileName,
if (!statement)
return PStatement();
}
parentScopeType = currentScope;
if (!memberName.isEmpty() && (statement->kind == StatementKind::skTypedef)) {
PStatement typeStatement = doFindTypeDefinitionOf(fileName,statement->type, parentScopeType);