From 9700490e5182f196662f09e9cb7379db49f9c731 Mon Sep 17 00:00:00 2001 From: IOBYTE Date: Thu, 11 Jul 2019 02:25:25 -0400 Subject: [PATCH] =?UTF-8?q?fix=20lib/checkclass.cpp:51:12:=20warning:=20en?= =?UTF-8?q?umeration=20value=20=E2=80=98eLambda=E2=80=99=20not=20handled?= =?UTF-8?q?=20in=20switch=20[-Wswitch]=20(#1978)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/checkclass.cpp | 2 ++ lib/symboldatabase.cpp | 2 ++ 2 files changed, 4 insertions(+) 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())