anuragraghavan / franca

Automatically exported from code.google.com/p/franca
0 stars 0 forks source link

Cyclic imports #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Franca should also detect cyclic imports like:

a.fidl imports b.fild
b.fidl imports a.fild

or

c.fidl imports c.fidl

Original issue reported on code.google.com by groe...@itestra.de on 6 Sep 2013 at 9:22

GoogleCodeExporter commented 9 years ago
Franca currently handles cyclic imports (and also self-imports) gracefully: It 
doesn't lead to a validation error and the behavior is as if every file has 
include guards.

However, there are various checks for cyclic dependencies on model level (also 
across file borders). Thus, if someone creates a multi-file model and relies on 
cyclic imports in order to create a cyclic model, there will be error markers 
at the appropriate locations.

Original comment by klaus.birken@gmail.com on 23 Sep 2013 at 1:23