handle clang type 'x < y::z >' better

This commit is contained in:
Daniel Marjamäki 2020-05-26 17:37:33 +02:00
parent 39fec386a1
commit dc0b68d505
1 changed files with 1 additions and 1 deletions

View File

@ -5645,7 +5645,7 @@ static const Token * parsedecl(const Token *type, ValueType * const valuetype, V
parsedecl(type->type()->typeStart, valuetype, defaultSignedness, settings); parsedecl(type->type()->typeStart, valuetype, defaultSignedness, settings);
else if (type->str() == "const") else if (type->str() == "const")
valuetype->constness |= (1 << (valuetype->pointer - pointer0)); valuetype->constness |= (1 << (valuetype->pointer - pointer0));
else if (settings->clang && type->str().find("::") != std::string::npos && type->str().size() > 2) { else if (settings->clang && type->str().size() > 2 && type->str().find("::") < type->str().find("<")) {
TokenList typeTokens(settings); TokenList typeTokens(settings);
std::string::size_type pos1 = 0; std::string::size_type pos1 = 0;
do { do {