fix : crash when parsing fmt/xchar.h
This commit is contained in:
parent
fd0d4d9f26
commit
8ebfeec97d
|
@ -4101,8 +4101,8 @@ void CppParser::handleVar(const QString& typePrefix,bool isExtern,bool isStatic,
|
||||||
PEvalStatement(),
|
PEvalStatement(),
|
||||||
true,false);
|
true,false);
|
||||||
if(aliasStatement) {
|
if(aliasStatement) {
|
||||||
if (aliasStatement->effectiveTypeStatement) {
|
if (aliasStatement->typeStatement) {
|
||||||
addedVar->type = aliasStatement->effectiveTypeStatement->fullName;
|
addedVar->type = aliasStatement->typeStatement->fullName;
|
||||||
if (!addedVar->type.endsWith(">"))
|
if (!addedVar->type.endsWith(">"))
|
||||||
addedVar->type += aliasStatement->templateParams;
|
addedVar->type += aliasStatement->templateParams;
|
||||||
if (aliasStatement->typeStatement
|
if (aliasStatement->typeStatement
|
||||||
|
@ -4193,8 +4193,8 @@ void CppParser::handleVar(const QString& typePrefix,bool isExtern,bool isStatic,
|
||||||
PEvalStatement(),
|
PEvalStatement(),
|
||||||
true,false);
|
true,false);
|
||||||
if(aliasStatement && aliasStatement->effectiveTypeStatement) {
|
if(aliasStatement && aliasStatement->effectiveTypeStatement) {
|
||||||
if (aliasStatement->effectiveTypeStatement) {
|
if (aliasStatement->typeStatement) {
|
||||||
addedVar->type = aliasStatement->effectiveTypeStatement->fullName;
|
addedVar->type = aliasStatement->typeStatement->fullName;
|
||||||
if (!addedVar->type.endsWith(">"))
|
if (!addedVar->type.endsWith(">"))
|
||||||
addedVar->type += aliasStatement->templateParams;
|
addedVar->type += aliasStatement->templateParams;
|
||||||
if (aliasStatement->typeStatement
|
if (aliasStatement->typeStatement
|
||||||
|
|
Loading…
Reference in New Issue