From 4138bf7fb34ddc606886efb6d468197fd727c914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 28 Sep 2019 14:57:24 +0200 Subject: [PATCH] SymbolDatabase: Better handling when return type of function is PodType --- lib/symboldatabase.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index ccc97d818..276b93e27 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -5532,6 +5532,13 @@ void SymbolDatabase::setValueTypeInTokenList(bool reportDebugWarnings) // library function else if (tok->previous()) { const std::string& typestr(mSettings->library.returnValueType(tok->previous())); + if (!typestr.empty()) { + ValueType valuetype; + if (valuetype.fromLibraryType(typestr, mSettings)) { + setValueType(tok, valuetype); + } + } + if (typestr.empty() || typestr == "iterator") { if (Token::simpleMatch(tok->astOperand1(), ".") && tok->astOperand1()->astOperand1() &&