[ClavaAst] Now app only creates empty sources for header files
@@ -44,6 +44,7 @@ import pt.up.fe.specs.clava.language.Standard;
import pt.up.fe.specs.clava.transform.call.CallInliner;
import pt.up.fe.specs.clava.utils.ExternalDependencies;
import pt.up.fe.specs.clava.utils.GlobalManager;
+import pt.up.fe.specs.clava.utils.SourceType;
import pt.up.fe.specs.util.SpecsIo;
import pt.up.fe.specs.util.SpecsLogs;
@@ -436,6 +437,11 @@ public class App extends ClavaNode {
continue;
}
+ // Only create empty sources for header files
+ if (SourceType.getType(originalRelativePath) != SourceType.HEADER) {
+ continue;
+ }
+
SpecsLogs.msgInfo("Creating empty source for file '" + originalRelativePath + "'");
// New source path will be destination folder + parent name of the original source path, if present
