diff --git a/lib/checkclass.cpp b/lib/checkclass.cpp index 1548d5034..9ccdc0f0b 100644 --- a/lib/checkclass.cpp +++ b/lib/checkclass.cpp @@ -61,6 +61,8 @@ static const char * getFunctionTypeName(Function::Type type) return "function"; case Function::eOperatorEqual: return "operator="; + case Function::eLambda: + return "lambda"; } return ""; } diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 29ccc8a76..22f54c121 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -2726,6 +2726,7 @@ void SymbolDatabase::printOut(const char *title) const func->type == Function::eOperatorEqual ? "OperatorEqual" : func->type == Function::eDestructor ? "Destructor" : func->type == Function::eFunction ? "Function" : + func->type == Function::eLambda ? "Lambda" : "Unknown") << std::endl; std::cout << " access: " << accessControlToString(func->access) << std::endl; std::cout << " hasBody: " << func->hasBody() << std::endl; @@ -2985,6 +2986,7 @@ void SymbolDatabase::printXml(std::ostream &out) const function->type == Function::eOperatorEqual ? "OperatorEqual" : function->type == Function::eDestructor ? "Destructor" : function->type == Function::eFunction ? "Function" : + function->type == Function::eLambda ? "Lambda" : "Unknown") << '\"'; if (function->nestedIn->definedType) { if (function->hasVirtualSpecifier())