Generated file src/interface_expr.cpp is invalid C++ code
hzeller opened this issue · comments
The file, generated from model/interface_expr.yaml
creates a code-snippet with an empty if-condition:
if () {
// ....
return false;
}
This file is not mentioned in the CMakeLists.txt file, so this is why it happens to not generate a compile error, but this leaves an unimplemented set of functions declared in the generated headers/interface_expr.h
Not anymore and the is compiled as part of the build now.
if (false) {
item->GetSerializer()->GetErrorHandler()(ErrorType::UHDM_WRONG_OBJECT_TYPE, "Internal Error: adding wrong object type (" + UhdmName(uhdmtype) + ") in a interface_expr group!", the_item, nullptr);
return false;
}