URL:
https://svn.lrde.epita.fr/svn/scool/branches/scool-ng
ChangeLog:
2008-10-08 Maxime van Noppen <yabo(a)lrde.epita.fr>
Do not add the inheritance relationships in class predeclarations
* Declaration.str: Here.
Declaration.str | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
Index: branches/scool-ng/src/scoolt/Declaration.str
===================================================================
--- branches/scool-ng/src/scoolt/Declaration.str (revision 115)
+++ branches/scool-ng/src/scoolt/Declaration.str (revision 116)
@@ -64,15 +64,14 @@
////////////////////////////////////////////////////////////////////////////////
DeclarationToCxx:
- ClassDeclaration(cqualif, idf, None()) -> CxxClassDecl(cxx_params, cxx_idf, [])
+ ClassDeclaration(cqualif, idf, _) -> CxxClassDecl(cxx_params, cxx_idf, [])
where
<AddExactType(|cqualif)> [] => cxx_params
; <IdentifierToCxx> idf => cxx_idf
- DeclarationToCxx:
- ClassDeclaration(cqualif, idf, Some(ClassWhereClause([wclause]))) -> cxx_code
- where
- <ClassWhereClauseToCxx(|cqualif, idf)> wclause => cxx_code
+// FIXME: we could generate a comment explaining the where clause to document the
predeclaration
+// DeclarationToCxx:
+// ClassDeclaration(cqualif, idf, Some(ClassWhereClause([wclause]))) ->
CxxClassDecl(cxx_params, cxx_idf, [])
DeclarationToCxx:
--
\__/ \__/
(00) Maxime `yabo` van Noppen (00)
___) \ Epita 2009 / (___
(_____/ \_____)