insert simplified types for implicit template type deduction (#2952)
Co-authored-by: Robert Reif <reif@FX6840>
This commit is contained in:
parent
c6f8ca447e
commit
2a05bc565d
|
@ -915,20 +915,20 @@ void TemplateSimplifier::getTemplateInstantiations()
|
||||||
tok->insertToken("float");
|
tok->insertToken("float");
|
||||||
else if (suffix == 'l' || suffix == 'L') {
|
else if (suffix == 'l' || suffix == 'L') {
|
||||||
tok->insertToken("double");
|
tok->insertToken("double");
|
||||||
tok->insertToken("long");
|
tok->next()->isLong(true);
|
||||||
} else
|
} else
|
||||||
tok->insertToken("double");
|
tok->insertToken("double");
|
||||||
} else if (num.isInt()) {
|
} else if (num.isInt()) {
|
||||||
std::string suffix = MathLib::getSuffix(tok->strAt(3));
|
std::string suffix = MathLib::getSuffix(tok->strAt(3));
|
||||||
if (suffix.find("LL") != std::string::npos) {
|
if (suffix.find("LL") != std::string::npos) {
|
||||||
tok->insertToken("long");
|
tok->insertToken("long");
|
||||||
tok->insertToken("long");
|
tok->next()->isLong(true);
|
||||||
} else if (suffix.find('L') != std::string::npos)
|
} else if (suffix.find('L') != std::string::npos)
|
||||||
tok->insertToken("long");
|
tok->insertToken("long");
|
||||||
else
|
else
|
||||||
tok->insertToken("int");
|
tok->insertToken("int");
|
||||||
if (suffix.find('U') != std::string::npos)
|
if (suffix.find('U') != std::string::npos)
|
||||||
tok->insertToken("unsigned");
|
tok->next()->isUnsigned(true);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue