Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/DataClassGen.xtend')
-rw-r--r--plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/DataClassGen.xtend5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/DataClassGen.xtend b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/DataClassGen.xtend
index 774ace9e6..5e4b83525 100644
--- a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/DataClassGen.xtend
+++ b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/DataClassGen.xtend
@@ -38,7 +38,7 @@ class DataClassGen {
@Inject ILogger logger
def doGenerate(Root root) {
- for (dc: root.dataClasses) {
+ root.dataClasses.filter[!isDeprecatedGeneration].forEach[dc |
val path = dc.getPath
var file = dc.getCHeaderFileName
@@ -52,8 +52,7 @@ class DataClassGen {
// source file
file = dc.getCSourceFileName
fileIO.generateFile("generating DataClass source", path + file, root.generateSourceFile(dc))
-
- }
+ ]
}
def generateHeaderFile(Root root, DataClass dc) {'''

Back to the top