Commit 63b0d5c3 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Report semantic errors after preprocessing backend

parent 810fe06a
/* Buildsupport is (c) 2008-2015 European Space Agency
/* Buildsupport is (c) 2008-2016 European Space Agency
* contact: maxime.perrotin@esa.int
* License is LGPL, check LICENSE file */
/*
*
* AADL Concurrency view "Unparser"
* Generate an interface view AADL file containing the results of the vertical transformation
*
......@@ -74,7 +73,6 @@ void AADL_CV_Unparser ()
fv->name);
FOREACH (interface, Interface, fv->interfaces, {
if (RI == interface->direction) {
FV *distant_fv = NULL;
char *distant_fv_name = NULL;
......
......@@ -153,6 +153,13 @@ void C_End()
if (get_context()->glue) {
Preprocessing_Backend(get_system_ast());
}
/*
* Preprocessing may have raised some further semantic errors.
*/
if (error_count > 0) {
fprintf(stderr, "\nFound %d errors.. Aborting...\n", error_count);
exit(1);
}
/*
* Debug mode (userflag -test) : dump the result of the transformation
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment