Detects missing type after array declaration. Fixes #253. (#255)

Co-authored-by: Michael Binz <michael.binz@daimler.com>
This commit is contained in:
Michael Binz
2022-06-19 23:02:54 +02:00
committed by GitHub
parent b5aee6d019
commit 5e933c3f17

View File

@ -85,6 +85,15 @@ static void _parse_signature(const std::string &signature, std::string &type, un
break;
}
case '\0':
{
std::cerr <<
"Invalid array definition. Type is missing after '" << signature
<< "'."
<< std::endl;
exit(-1);
}
default:
{
type += "std::vector<";